Learn R Programming

nlme (version 3.1-19)

update.lme: 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

## S3 method for class 'lme':
update(object, fixed, data, random, correlation, weights,
      subset, method, na.action, control, \dots)

Arguments

Value

an updated lme object.

See Also

lme

Examples

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

Run the code above in your browser using DataLab