formula.nls: Extract Model Formula from nls Object

Description Usage Arguments Value Author(s) See Also Examples

Description

Returns the model used to fit object.

Usage

1
2
## S3 method for class 'nls'
formula(x, ...)

Arguments

x

an object inheriting from class "nls", representing a nonlinear least squares fit.

...

further arguments passed to or from other methods.

Value

a formula representing the model used to obtain object.

Author(s)

José Pinheiro and Douglas Bates

See Also

nls, formula

Examples

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.