適用於不平衡數據集的aov。根據幫助...provides a wrapper to lm for fitting linear models to balanced or unbalanced experimental designs。但稍後它說aov is designed for balanced designs, and the results can be hard to interpr
>str(set)
'data.frame': 1000 obs. of 6 variables:
$ ID : Factor ..
$ a : Factor ..
$ b: Factor ..
$ c: Factor ..
$ dat : num ..
$ contrasts : Ord.factor ..
>X
[1] "a" "b" "c"
for (i in
我一直在使用var.test和bartlett.test來檢查基本方差分析假設,其中包括homoscedascity(同質性,差異性的等式)。程序是單因素方差分析很簡單: bartlett.test(x ~ g) # where x is numeric, and g is a factor
var.test(x ~ g)
但是,對於2×2表,即二維方差分析的,我想要做這樣的事情: bart