Re: [R] Format of Output of Residuals

2010-10-04 Thread Michael Just
Thank you this was worked great. Thank you for the additional information as well. Knowledge is power. Cheers, Michael On Fri, Oct 1, 2010 at 5:34 AM, Dennis Murphy wrote: > > Hi: > > CW.lm <- lm(weight ~ Diet, ChickWeight) > resid.CW.lm <- resid(CW.lm) > as.data.frame(resid(CW.lm))[1:10, ] 

Re: [R] Format of Output of Residuals

2010-10-01 Thread Dennis Murphy
Hi: CW.lm <- lm(weight ~ Diet, ChickWeight) resid.CW.lm <- resid(CW.lm) as.data.frame(resid(CW.lm))[1:10, ] # (nope) [1] -60.645455 -51.645455 -43.645455 -38.645455 -26.645455 -9.645455 [7] 3.354545 22.354545 46.354545 68.354545 # convert residuals to one column matrix, then convert t

[R] Format of Output of Residuals

2010-09-30 Thread Michael Just
An excerpt from dataset ChickWeight:     weight Time Chick Diet 1   42    0 1    1 2   51    2 1    1 3   59    4 1    1 I am interested in the residuals of the dataset.  Specifically in saving them to another format. I have been creating text files with sink. CW.lm <- lm(