Skip to content
Prev 166900 / 398502 Next

Trouble about the interpretation of intercept in lm models

On Jan 13, 2009, at 5:15 PM, Stefano Leonardi wrote:

            
It would be so *if* you had estimated a saturated model, but you did  
not. Your fit
of Y|A values is adjusted for the B values.

Try instead with lm(Y ~ A * B). You should get intercept (1), main  
effects(1+2) and
interaction terms(2) which should total the number of groups.  
Appropriately combined,
these estimates will now exactly fit the "raw values".