###配对样方t检验
#两组数据之间的比较
b <- c(2.41,2.90,2.75,2.23,3.67,4.49,5.16,5.45,2.06,1.64,4.06,0.77)
c <- c(2.80,3.04,1.88,3.43,3.81,4.00,4.44,5.41,1.24,1.83,1.45,0.92)
t.test(b,c,paired = TRUE,alternative = "two.sided",conf.level = 0.95)
#结果
Paired t-test
data: b and c
t = 1.0235, df = 11, p-value = 0.3281
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.3202083 0.8768750
sample estimates:
mean of the differences
0.2783333
p>0.05,两样本间差异不显著