[R] parameter estimates from nls

Michael A. Miller mmiller3 at iupui.edu
Wed Jan 8 18:18:02 CET 2003


>>>>> "David" == David Parkhurst <parkhurs at indiana.edu> writes:

    > How can I get at the estimated parameter values from a
    > non-linear model fitted by nls in R, so as to plot the
    > fitted curve?  If I have f.t <- nls(f~a*exp(b*t), ...)
    > then type names(f.t), all that shows up is m for model,
    > data, and call.  I don't see how to get at a and b, other
    > than to print them.

They can be gotten with a coef (or coefficients) call to the fit
result: coef(f.t)['a']

Mike




More information about the R-help mailing list