[R] How to get the parameters of nls(...) for later use

Douglas Bates bates at stat.wisc.edu
Mon Nov 24 23:06:12 CET 2003


"Nancy Lo" <Nancy.Lo at noaa.gov> writes:

> I need to use the parameter estimates of nls() for further analysis. I
> know how to do in S+, e.g. nls(...)$parameters. In R, the
> attributes(nls(...)) does not have parameters, how would one get the
> parameter values out of nls()?

In both R and S-PLUS the use of the extractor function coef() is the
preferred way to obtain the parameter estimates from a fitted nls
model.  Try

 coef(nls(...))




More information about the R-help mailing list