[BioC] silly lm and anova question

Wolfgang Huber huber at ebi.ac.uk
Tue Dec 12 10:18:18 CET 2006


Dear James,

You will need to send a code example that other people can copy/paste,
rerun and reproduce. Otherwise you may have very little chance of
getting a meaningful answer.

 Best wishes

 Wolfgang Huber

------------------------------------------------------------------
Wolfgang Huber  EBI/EMBL  Cambridge UK  http://www.ebi.ac.uk/huber



James Anderson wrote:
> Hi, 
>   I am using linear model lm and anova. However, I found the following weird phenomenon:
> 
> g1 = lm(z ~ x+y)
> g2 = lm(z ~ y+x)
> 
> g1 and g2 have the same linear regression results. However, 
> anova(g1) and anova(g2) gives very different results in the calculation for sum of square in x and y. the residuals are the same. It looks like a simple question, but I have not figured it out why. 
> 
>   Many thanks,
>   James
>



More information about the Bioconductor mailing list