Sampling Posterior
Closed this issue · 3 comments
AwanyDenis commented
Please check the PosteriorDraw(...) function. The first input argument has issues.
dm13450 commented
I'm going to need more details, have you got a example of what you are trying to do?
AwanyDenis commented
Thanks.
The error (from all mixing distribution options) is as shown below.
y is the observation datapoints.
dis = BetaMixtureCreate(priorParameters = c(2, 8), mhStepSize = c(1, 1), maxT = 1, hyperPriorParameters = c(1, 0.125))> PosteriorDraw(dis,y,n=1)Error in UseMethod("PosteriorDraw", mdObj) :
no applicable method for 'PosteriorDraw' applied to an object of
class "c('list', 'beta', 'nonconjugate')"
…
On Thu, Feb 14, 2019 at 12:29 PM Dean ***@***.***> wrote:
I'm going to need more details, have you got a example of what you are
trying to do?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AtbDGfYn3H46yPLvShIBk8hWiPjfWEE-ks5vNTqFgaJpZM4a7RHp>
.
--
-----
Awany Denis
dm13450 commented
Ok I've fixed it. I wasn't exporting all the necessary functions.
Install the dev version devtools::install_github("dm13450/dirichletprocess")
and retry please.