[R] Re siduals from a linear model
Greg.Snow at imail.org
Tue Nov 18 19:51:02 CET 2008
To get at the effect of d in the model y~ a+b+c+d you need to look at the regression of the residuals of y ~ a+b+c on the residuals of d ~ a+b+c, that should give you the same results/significance as d in the full model. If you only regress the residuals against d, then that does not adjust for the relationship between d and a, b, and c as the full model does.
Hope this helps,
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Manuel Ramon
> Sent: Tuesday, November 18, 2008 2:23 AM
> To: r-help at r-project.org
> Subject: [R] Re siduals from a linear model
> I'm working with a linear model with four factors as explicatory
> being all of them significally (e.g. y ~ a + b + c + d). I thought that
> residuals of a linear model keep the variance not explained by the
> model, so
> if I use my model with just three factors (y ~ a + b + c) and keep the
> residuals is expected that in a new model with the residuals as
> variable and the four factor as independent (residuals ~ d) that factor
> will be significally. Is that truth or not?
> Manuel Ramón Fernández
> Group of Reproductive Biology (GBR)
> University of Castilla-La Mancha (Spain)
> mramon at jccm.es
> View this message in context: http://www.nabble.com/Residuals-from-a-
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help