Re: [R] Extracting Number from Output of Coef()

2007-11-11 Thread Ben Bolker
Peter Lauren wrote: > > I obtain the coefficients of a nonlinear function > thus. > -- > m=nls(y ~ a + b*x + c*x^2 + d*x^3 + > e*exp(x)+f*log(x)+g*log2(x), start = list(a = 0, b = > 1, c = 1, d=1, e=1, f=1, g=1)) > > c=coef(m) > -

[R] Extracting Number from Output of Coef()

2007-11-11 Thread Peter Lauren
I obtain the coefficients of a nonlinear function thus. -- m=nls(y ~ a + b*x + c*x^2 + d*x^3 + e*exp(x)+f*log(x)+g*log2(x), start = list(a = 0, b = 1, c = 1, d=1, e=1, f=1, g=1)) c=coef(m) --- However, when I look at