Skip to content
Prev 350408 / 398506 Next

Contrast anova multi factor

A little more precisely: It is the estimate of the expected value at the reference situation. 

In a balanced two-way design, this can be worked out explicitly: It is the average of the first row + the average of the first column - the total average. E.g.
Call:
lm(formula = hr ~ subj + time, data = heart.rate)

Coefficients:
(Intercept)        subj2        subj3        subj4        subj5        subj6  
     94.917       18.000       -5.750       -8.000       30.500        6.500  
      subj7        subj8        subj9       time30       time60      time120  
    -22.000      -16.000       11.500       -4.000       -5.444       -4.222
1      2      3      4      5      6      7      8      9 
 91.50 109.50  85.75  83.50 122.00  98.00  69.50  75.50 103.00
0       30       60      120 
96.55556 92.55556 91.11111 92.33333
[1] 93.13889
[1] 94.91667

In an unbalanced design, the calculation of the intercept gets a bit lost in matrix-calculus land; there is no simple formula, but it is still an estimate of the same thing. 

- Peter D