R で多くの仮説検定を処理し、結果を提示する必要があります。次に例を示します。
> library(MASS)
> h=na.omit(survey$Height)
>
> pop.mean=mean(h)
> h.sample = sample(h,30)
>
> t.test(h.sample,mu=pop.mean)
One Sample t-test
data: h.sample
t = -0.0083069, df = 29, p-value = 0.9934
alternative hypothesis: true mean is not equal to 172.3809
95 percent confidence interval:
168.8718 175.8615
sample estimates:
mean of x
172.3667
t.test やその他の仮説検定の結果を視覚化する方法はありますか?
以下は、私が探しているものの例です。