strv_simulate | R Documentation |
Simulate from a model object.
strv_simulate(object, ...)
## S4 method for signature 'starve'
strv_simulate(object, conditional = FALSE, ...)
object |
A model object to simulate from. |
... |
Extra options |
conditional |
Logical. If false (default), new random effects and new observations are simulated. If true, new observations are simulated conditional on the random effect values in the supplied model. |
A single copy of object
with a simulated dataset replacing
the original data
strv_simulate(starve)
: Simulate a new dataset from the model, with the
option to simulate a new set of random effects as well. The parameter
values used in the simulations are those set in parameters(model)
.
Returns a starve
object with simulated random effects (if
conditional=FALSE
)and simulated data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.