我有两个样本数据,分别是在两种不同处理条件下收集的:
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)
which gave me result as below (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
有人能帮我解决这个问题吗?非常感谢!