[R] partial residuals the output of residuals.lm(..., type=partial)

2009-02-18 Thread Daniel McGlinn
Dear list, I would like to know how the function residuals.lm calculates the partial residuals from an lm object with more than one predictor variable. In other words what is residuals.lm(...,type=partial) doing behind the scenes? According to the help file for residuals.lm

Re: [R] partial residuals the output of residuals.lm(..., type=partial)

2009-02-18 Thread Daniel McGlinn
Dear list, After thinking about it a little more I solved my question of why I was calculating different residuals when using residuals.lm(...,type=partial) and when dropping a single term and recalculating the residuals. This is because the two variables are in a sense competing with one

[R] partial residuals

2008-05-02 Thread Irene Mantzouni
Dear all, I am trying to estimate partial residuals for the multiple regression lm model: a.lm=lm(y~x1+x2) I use the function residuals(a.lm, type=partial) However, the results are much different when I use the manual method to get partial residuals for x2 (or for x1):