R/BSDA-package.R
Movie.Rd
Data for Exercise 7.53
Movie
A data frame/tibble with 12 observations on three variables
moral aptitude before viewing the movie
moral aptitude after viewing the movie
a numeric vector
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
qqnorm(Movie$differ)
qqline(Movie$differ)
shapiro.test(Movie$differ)
#>
#> Shapiro-Wilk normality test
#>
#> data: Movie$differ
#> W = 0.83643, p-value = 0.02506
#>
t.test(Movie$differ, conf.level = 0.99)
#>
#> One Sample t-test
#>
#> data: Movie$differ
#> t = 2, df = 11, p-value = 0.0708
#> alternative hypothesis: true mean is not equal to 0
#> 99 percent confidence interval:
#> -0.3686022 1.7019355
#> sample estimates:
#> mean of x
#> 0.6666667
#>
wilcox.test(Movie$differ)
#> Warning: cannot compute exact p-value with ties
#> Warning: cannot compute exact p-value with zeroes
#>
#> Wilcoxon signed rank test with continuity correction
#>
#> data: Movie$differ
#> V = 52.5, p-value = 0.07707
#> alternative hypothesis: true location is not equal to 0
#>