nlme (version 3.1-39)

formula.gnls: Extract gnls Object Formula

Description

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

Usage

## S3 method for class 'gnls':
formula(x, \dots)

Arguments

x
an object inheriting from class gnls, representing a generalized nonlinear least squares fitted model.
...
some methods for this generic require additional arguments. None are used in this method.

Value

  • a two-sided formula specifying the nonlinear model used to obtain x.

See Also

gnls

Examples

Run this code
data(Soybean)
fm1 <- gnls(weight ~ SSlogis(Time, Asym, xmid, scal), Soybean,
            weights = varPower())
formula(fm1)

Run the code above in your browser using DataLab