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
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
(?residuals.lm
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):
3 matches
Mail list logo