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) 

REQUIRED ARGUMENTS:

object
an object inheriting from class lme, representing a fitted linear mixed-effects model.

OPTIONAL ARGUMENTS:

other arguments
defined as in lme. See that functions documentation for descriptions and default values for these arguments.

VALUE:

an updated lme object.

SEE ALSO:

EXAMPLES:

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