I'm having trouble with a nested ANOVA with two levels of nesting. Specifically, I have two treatments (A and B) at two levels each (0, 1 for both A and B), Litters nested within the 4 combination of A and B levels (00, 01, 10, 11), Sex within litters and Animal within Sex and Litter (two littermates per sex per litter). I would like to test the effects of A, B, A#B, with Litter|(A#B) as error term, and Sex, Sex#A, Sex#B, Sex#A#B with Sex#Litter|(A#B) as error term. I would also like to test the effect of Litter on Animal within Sex and Litter. I have generated the variable AB = A*10+B and tried the following models:
1) anova RESPONSE A B A#B / Litter|A#B Sex Sex#A Sex#B Sex#A#B / Sex#Litter|A#B
2) anova RESPONSE A B A#B / Litter|(A#B) Sex Sex#A Sex#B Sex#A#B / Sex#Litter|(A#B)
3) anova RESPONSE A B A#B / Litter|AB Sex Sex#A Sex#B Sex#A#B / Sex#Litter|AB
I expected equal results, at least from models 2 and 3. Models 1 and 2 give the same results but, unfortunately, they give different results from model 3. In addition, Models 1 and 2 give the same results also when using for example A#Litter|B or B#Litter|A instead of Litter|(A#B) or Litter|A#B, and this is clearly wrong. In any case, I don't' succeed in testing the effect of Litter. How should I do? Any suggestion is really appreciated.
Thank you very much
1) anova RESPONSE A B A#B / Litter|A#B Sex Sex#A Sex#B Sex#A#B / Sex#Litter|A#B
2) anova RESPONSE A B A#B / Litter|(A#B) Sex Sex#A Sex#B Sex#A#B / Sex#Litter|(A#B)
3) anova RESPONSE A B A#B / Litter|AB Sex Sex#A Sex#B Sex#A#B / Sex#Litter|AB
I expected equal results, at least from models 2 and 3. Models 1 and 2 give the same results but, unfortunately, they give different results from model 3. In addition, Models 1 and 2 give the same results also when using for example A#Litter|B or B#Litter|A instead of Litter|(A#B) or Litter|A#B, and this is clearly wrong. In any case, I don't' succeed in testing the effect of Litter. How should I do? Any suggestion is really appreciated.
Thank you very much
Comment