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

 
---------------------------------
Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.
	[[alternative HTML version deleted]]

