R/BSDA-package.R
Corn.Rd
Data for Exercise 7.77
Corn
A data frame/tibble with 12 observations on three variables
corn yield with new meathod
corn yield with standard method
new
minus standard
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
boxplot(Corn$differences)
qqnorm(Corn$differences)
qqline(Corn$differences)
shapiro.test(Corn$differences)
#>
#> Shapiro-Wilk normality test
#>
#> data: Corn$differences
#> W = 0.92248, p-value = 0.3072
#>
t.test(Corn$differences, alternative = "greater")
#>
#> One Sample t-test
#>
#> data: Corn$differences
#> t = 3.8308, df = 11, p-value = 0.001395
#> alternative hypothesis: true mean is greater than 0
#> 95 percent confidence interval:
#> 4.116803 Inf
#> sample estimates:
#> mean of x
#> 7.75
#>