検定関係

検定

ansari.test, bartlett.test, binom.test, Box.test, chisq.test, cor.test, fisher.test,
fligner.test, friedman.test, kruskal.test, ks.test, mantelhaen.test, mauchly.test,
mcnemar.test, mood.test, oneway.test, pairwise.prop.test, pairwise.t.test,
pairwise.wilcox.test, poisson.test, power.anova.test, power.prop.test, power.t.test,
PP.test, prop.test, prop.trend.test, quade.test, shapiro.test, t.test, var.test,
wilcox.test

# t検定
x <- 1:20
y <- 5:25
z <-t.test(x, y, var.equal = TRUE)

値の参照について

# t値はstatisticで参照可能
z$statistic
##         t 
## -2.374387
# p値はp.valueで参照可能
z$p.value
## [1] 0.02259506
# 95%信頼区間値はconf.intで参照可能
z$conf.int
## [1] -8.3334558 -0.6665442
## attr(,"conf.level")
## [1] 0.95
最終更新日:2016/04/27

copyrigth © 2016 r-beginners.com All rigths reserved.

PAGE TOP ▲