update.lme {nlme}R Documentation

Update an lme Object

Description

The non-missing arguments in the call to the update.lme method replace the corresponding arguments in the original call used to produce object and lme is used with the modified call to produce an updated fitted object.

Usage

update(object, fixed, data, random, correlation, weights, subset, method,
       na.action, control)

Arguments

object an object inheriting from class lme, representing a fitted linear mixed-effects model.
other arguments defined as in lme. See that function's documentation for descriptions of and default values for these arguments.

Value

an updated lme object.

Author(s)

Jose Pinheiro and Douglas Bates

See Also

lme

Examples

data(Orthodont)
fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject)
fm2 <- update(fm1, distance ~ age * Sex)

[Package Contents]