powered by
tramME
Simulate from a tramME model
# S3 method for tramME simulate( object, nsim = 1, seed = NULL, newdata = model.frame(object), type = c("ranef", "response", "joint"), ... )
A length nsim list of draws.
nsim
A tramME object.
number of samples to generate
optional seed for the random number generator
an optional data frame of observations
Defaults to "ranef". Currently the only avalable option.
"ranef"
Additional arguments, passed to simulate.mlt.
simulate.mlt
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)
Run the code above in your browser using DataLab