nlme (version 3.1-1)

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

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.

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