nlme (version 3.1-1)

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

See Also

nlme

Examples

Run this code
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)

Run the code above in your browser using DataCamp Workspace