This help topic is for R version 1.1. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/nls/html/formula.nls.html
formula.nls {nls}R Documentation

Extract Model Formula from nls Object

Description

Returns the model used to fit object.

Usage

formula(object)

Arguments

object

an object inheriting from class nls, representing a non-linear least squares fit.

Value

a formula representing the model used to obtain object.

Author(s)

Jose Pinheiro and Douglas Bates

See Also

nls, formula

Examples

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