simulate.tramME | R Documentation |
tramME
modelSimulate from a tramME
model
## S3 method for class 'tramME'
simulate(
object,
nsim = 1,
seed = NULL,
newdata = model.frame(object),
type = c("ranef", "response", "joint"),
...
)
object |
A |
nsim |
number of samples to generate |
seed |
optional seed for the random number generator |
newdata |
an optional data frame of observations |
type |
Defaults to |
... |
Additional arguments, passed to |
A length nsim
list of draws.
This method is under active development and may be subject to change. It is currently limited to simulating random effects.
data("sleepstudy", package = "lme4")
fit <- BoxCoxME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
sim <- simulate(fit, nsim = 10, seed = 123)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.