update.nlme {nlme}R Documentation

Update an nlme Object

Description

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

Usage

update(object, model, data, fixed, random, groups, start,
       correlation, weights, subset, method, na.action, naPattern,
       control, verbose)

Arguments

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

Value

an updated nlme object.

Author(s)

Jose Pinheiro and Douglas Bates

See Also

nlme

Examples

data(Loblolly)
fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc),
            data = Loblolly,
            fixed = Asym + R0 + lrc ~ 1,
            random = Asym ~ 1,
            start = c(Asym = 103, R0 = -8.5, lrc = -3.3))
fm2 <- update(fm1, random = pdDiag(Asym + lrc ~ 1))
summary(fm1)
summary(fm2)