【发布时间】:2015-12-09 00:09:24
【问题描述】:
我在两种不同的处理方法下收集了两个数据样本:
sam.a <- c( 0.1333333, 0.2258065, 0.1944444, 0.2894737)
sam.b <- c(0.137931, 0.093750, 0, 0)
我首先在 R 中尝试了 t.test:
t.test(sam.a,sam.b)
结果如下(p < 0.05):
Welch Two Sample t-test
data: sam.a and sam.b
t = -4.1497, df = 5.8602, p-value = 0.006329
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.27151717 -0.06935361
sample estimates:
mean of x mean of y
0.1994576 0.3698930
当我在 R 中使用 anova 尝试相同的数据时:
aov(sam.a ~ sam.b)
结果变得微不足道(p > 0.05):
Df Sum Sq Mean Sq F value Pr(>F)
sam.b 1 0.005970 0.005970 1.778 0.314
Residuals 2 0.006714 0.003357
谁能帮我解决这个问题?非常感谢!
【问题讨论】:
标签: r statistics anova