Description Usage Arguments Examples
Simulating from the posterior predictive distribution can be helpful for assessing the adequacy of the mixture model.
1 | posteriorPredictive(model)
|
model |
a SingleBatchModel or MultiBatchModel |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
model <- SingleBatchModelExample
mp <- McmcParams(iter=200, burnin=50)
mcmcParams(model) <- mp
model <- posteriorSimulation(model)
pd <- posteriorPredictive(model)
if(FALSE) qqplot(pd, y(model))
bmodel <- MultiBatchModelExample
mp <- McmcParams(iter=500, burnin=150, nStarts=20)
mcmcParams(bmodel) <- mp
bmodel <- posteriorSimulation(bmodel)
batchy <- posteriorPredictive(bmodel)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.