1標本 t 検定

データdata1 について「母平均が 25 であるか否か」の一標本t 検定を行う場合は関数t.test()を使います。
> data1<-c(20,25,34,25,26,28,29,15,18,19)
> t.test(data1,mu=25)
One Sample t-test
data: data1
t = -0.5976, df = 9, p-value = 0.5648
alternative hypothesis: true mean is not equal to 25
95 percent confidence interval:
19.73629 28.06371
sample estimates:
mean of x
23.9

This page is powered by Blogger. Isn't yours?