predict.emc.prior | R Documentation |
Simulate n_post
data sets using the posterior/prior parameter estimates
## S3 method for class 'emc.prior'
predict(object, data = NULL, n_post = 50, n_cores = 1, n_trials = NULL, ...)
## S3 method for class 'emc'
predict(
object,
hyper = FALSE,
n_post = 50,
n_cores = 1,
stat = c("random", "mean", "median")[1],
...
)
object |
An emc or emc.prior object from which to generate predictives |
data |
A data frame needed to exactly match the original design |
n_post |
Integer. Number of generated datasets |
n_cores |
Integer. Number of cores across which there should be parallellized |
n_trials |
An integer. If |
... |
Optional additional arguments passed to |
hyper |
Boolean. Defaults to |
stat |
Character. Can be |
A list of simulated data sets of length n_post
# based on an emc object ran by fit() we can generate posterior predictives
predict(samples_LNR, n_cores = 1, n_post = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.