Skip to content
Prev 4746 / 398506 Next

anova question

Ulf Mehlig <umehlig at uni-bremen.de> writes:
Um, 

If B is the treatment you want B/A, I believe?

I don't think the data frame looks like I think you think it looks:

               x  a b
1   0.9421894166  1 1
2  -0.6615090815  1 1
3   0.6659020398  1 1
4   0.6384607529  1 1
5   0.2785534174  1 1
6  -0.5093066357  2 1
7  -0.1765458342  2 1
8  -0.0003846756  2 1
9  -0.5523574783  2 1
10  1.4351543109  2 1
11  0.2338159511  3 1
12  0.2701585951  3 1
13  0.3781168982  3 2

I think you expected this:
Df Sum Sq Mean Sq
factor(b)            4  5.367   1.342
factor(b):factor(a) 55 56.619   1.029

I.e the b:a effect leaves no DF for residuals. So you remove the term
and use that SS for residual.