simulateY.lme: Simulates values for an 'lme' object

View source: R/simulateY.R

simulateY.lmeR Documentation

Simulates values for an lme object

Description

This is a method for the simulateY generic function.

Usage

## S3 method for class 'lme'
simulateY(
  object,
  nsim = 1,
  seed = as.integer(runif(1, 0, .Machine$integer.max)),
  ...,
  verbose = FALSE,
  sigma
)

Arguments

object

an lme 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.

Details

Simulates values of the dependent variable for a fitted lme model. Data with one level of grouping only.

Value

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

Author(s)

Andrzej Galecki and Tomasz Burzykowski

Examples


## Not run: 
  library(nlme)
  fm1 <- lme(distance ~ age, data = Orthodont)
  simulateY(fm1)

## End(Not run)


nlmeU documentation built on Aug. 25, 2025, 5:12 p.m.