在STHDA网站Comparing Variances in R 一文中,专门对正态性检验做了详致的说明,翻译并整理入下:
(一) F检验F-Test
F检验用于评估两个总体(A和B)的方差是否相等。
F-Test: Compare Two Variances in R.
> var.test(len ~ supp, data = my_data)
F test to compare two variances
data: len by supp
F = 0.6386, num df = 29, denom df = 29, p-value = 0.2331
alternative hypothesis: true ratio of variances is not equal to 1
95 percent confidence interval:
0.3039488 1.3416857
sample estimates:
ratio of variances
0.6385951
(二) 比较方差的统计检验 Homogeneity of variances
有许多检验可以检测不同组之间方差的均等性(均一性)