[R] Unable to retrieve residual sum of squares from nls output

2010-08-13 Thread Dennis Fisher
Colleagues, I am using nls successfully (2.11.1, OS X) but I am having difficulties retrieving part of the output - residual sum of squares. I have assigned the output to FIT: FIT Nonlinear regression model model: NEWY ~ PMESOR + PAMPLITUDE * cos(2 * pi * (NEWX - POFFSET)/PERIOD)

Re: [R] Unable to retrieve residual sum of squares from nls output

2010-08-13 Thread Gabor Grothendieck
On Fri, Aug 13, 2010 at 5:21 PM, Dennis Fisher fis...@plessthan.com wrote: Colleagues, I am using nls successfully (2.11.1, OS X) but I am having difficulties retrieving part of the output - residual sum of squares.  I have assigned the output to FIT: FIT Nonlinear regression model  

Re: [R] Unable to retrieve residual sum of squares from nls output

2010-08-13 Thread Jun Shen
Hi, Dennis, Does this give what you want? sum(resid(FIT)^2) Jun Senior Pharmacokineticist Seventh Wave Labs On Fri, Aug 13, 2010 at 4:21 PM, Dennis Fisher fis...@plessthan.com wrote: Colleagues, I am using nls successfully (2.11.1, OS X) but I am having difficulties retrieving part of the

Re: [R] Unable to retrieve residual sum of squares from nls output

2010-08-13 Thread Gabor Grothendieck
On Fri, Aug 13, 2010 at 5:32 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Fri, Aug 13, 2010 at 5:21 PM, Dennis Fisher fis...@plessthan.com wrote: Colleagues, I am using nls successfully (2.11.1, OS X) but I am having difficulties retrieving part of the output - residual sum of