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. Thanks. Dave Parkhurst (coming from splus to R)
>>>>> "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