ANOVA

 Balanced data: types 1–3 are the same

Unbalanced data
type 1 SS: anova, sequential, not useful
type 2 SS (if no interaction): car Anova
type 3 SS (if interaction): car Anova, contrasts=list(A=contr.sum, B=contr.sum), type=3))

anova.lme: anova(m, type=“marginal”)
contrasts(A) <- “contr.treatment”
contr.treatment: dummy coding, contr omitted level
contr.sum: contr avg of other levels
contr.helmert: contr avg of preceding levels
reverse helmert: manually contr avg of subsequent levels
contr.poly: contr orthogonal polynnomial
unbalanced data:
unequal levels: contr.poly(4, c(15,30,60,90))

留言

這個網誌中的熱門文章

可轉移性、普遍性、代表性和外部有效性

頻率學派 vs 貝氏學派

貝氏分析計算器