nlme (version 3.1-18)

formula.nls: Extract Model Formula from nls Object

Description

Returns the model used to fit object.

Usage

## S3 method for class 'nls':
formula(object)

Arguments

Value

a formula representing the model used to obtain object.

See Also

nls, formula

Examples

Run this code
data(Orange)
fm1 <- nls(circumference ~ A/(1+exp((B-age)/C)), Orange,
  start = list(A=160, B=700, C = 350))
formula(fm1)

Run the code above in your browser using DataLab