This function is generic; method functions can be written to handle specific classes of objects.

simulateY(object, nsim = 1, seed = NULL, ..., verbose = FALSE, sigma)

Arguments

object

an object with a model fit for which the dependent variable is to be simulated.

nsim

number of simulations. By default, nsim = 1.

seed

integer scalar used to initiate the random number generator.

...

some methods for this generic function may require additional arguments.

verbose

logical. If TRUE, basic information about arguments is provided. By default set to FALSE.

sigma

numeric scalar. Allows simulations employing an alternative value of the scale parameter.

Value

Numeric matrix with the number of columns determined by the nsim argument.

Author

Andrzej Galecki and Tomasz Burzykowski

Examples


if (FALSE) { # \dontrun{
  library(nlme)
  fm1 <- lme(distance ~ age, data = Orthodont)
  simulateY(fm1)
} # }