【发布时间】:2020-04-26 04:13:40
【问题描述】:
我正在运行 R-intro 手册的示例:
A = c(79.98, 80.04, 80.02, 80.04, 80.03, 80.03, 80.04, 79.97, 80.05, 80.03, 80.02, 80.00, 80.02)
B = c(80.02, 79.94, 79.98, 79.97, 79.97, 80.03, 79.95, 79.97)
t.test(A, B)
这会产生以下结果:
Welch Two Sample t-test
data: A and B
t = 3.2499, df = 12.027, p-value = 0.006939
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
0.01385526 0.07018320
sample estimates:
mean of x mean of y
80.02077 79.97875
问题是:如果均值的差异包含在置信区间内(80.02077-79.97875=0.04202 和 0.01385526
【问题讨论】:
-
您正在测试的差异不为零。置信区间是样本均值之差的 95% 置信区间。粗略地说,如果 0 不在 CI 中,你会得到 p-value
-
也没有任何结论。你是要得出结论的人。它只是说明了替代假设是什么
标签: r statistics t-test