nlme (version 3.1-1)

formula.nlme: Extract nlme Object Formula

Description

This method function extracts the nonlinear model formula associated with object.

Usage

formula(object)

Arguments

object
an object inheriting from class nlme, representing a fitted nonlinear mixed-effects model.

Value

  • a two-sided nonlinear formula specifying the model used to obtain 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))
formula(fm1)

Run the code above in your browser using DataLab