##
## Paired t-test
##
## data: AsprinA and AsprinB
## t = 3.6742, df = 9, p-value = 0.005121
## alternative hypothesis: true mean difference is not equal to 0
## 95 percent confidence interval:
## 1.383548 5.816452
## sample estimates:
## mean difference
## 3.6
##
## Welch Two Sample t-test
##
## data: AsprinA and AsprinB
## t = 0.9802, df = 17.811, p-value = 0.3401
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -4.12199 11.32199
## sample estimates:
## mean of x mean of y
## 19.2 15.6
##
## Wilcoxon rank sum exact test
##
## data: active and non_active
## W = 9, p-value = 0.09524
## alternative hypothesis: true location shift is less than 0
AsprinA <- c(15,26,13,28,17,20,7,36,12,18)
AsprinB <- c(13,20,10,21,17,22,5,30,7,11)
result1 <- t.test(AsprinA, AsprinB, paired = TRUE, conf.level = .95)
result1
result2 <-t.test(AsprinA, AsprinB, conf.level = .95)
result2
active <- c(9.50,10.00,9.75,9.75,9.00,13.00)
non_active<-c(11.50,12.00,13.25,11.50,13.00,9.00)
wilcox.test(active,non_active, alternative = c(“less”))