生态学常用#两配对样本t检验

###配对样方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,两样本间差异不显著

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值