# 1-way between-subjects design: completely randomized design (CR):
aov(DV~IV, data=資料)
# 1-way within-subjects design: randomized block design (RB):
aov(DV~IV+Error(subject/IV), data=資料)
# 2-way between-subjects design: completely randomized factorial design (CRF):
aov(DV~IV1*IV2, data=資料)
# 若交互作用不重要:
aov(DV~IV1+IV2, data=資料)
# 2-way within-subjects design: randomized block factorial design (RBF):
aov(DV~IV1*IV2+Error(subject/(IV1*IV2)), data=資料)
# 2-way mixed design
aov(DV~IVw*IVb+Error(subject/(IVw))+IVb, data=資料)
# Nested design: hierarchical design
aov(DV~IV+IV:IVn, data=資料)
# IVn nested在IV裡面
# Latin square: 交互作用不考慮
aov(DV~IV1+IV2, data=資料)