| simulate.bmixlm | R Documentation |
bmixlm ObjectNew observations are simulated from the posterior predictive distribution.
## S3 method for class 'bmixlm'
simulate(object, nsim = 1, seed = NULL, ...)
object |
An object of class |
nsim |
Number of response vectors to simulate. |
seed |
An object specifying if and how the random number generator should be initialized. |
... |
Additional arguments to be passed to |
If nsim is not NULL, update is called to
generate nsim new samples from the posterior, and new
observations are generated from these. Otherwise new observations
are generated from the samples contained in the fitted object.
A dataframe of simulated responses.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.