R/BSDA-package.R
Independent.Rd
Data for Exercise 7.41
Independent
A data frame/tibble with 46 observations on two variables
a numeric vector
a factor with levels A
and B
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
qqnorm(Independent$score[Independent$group=="A"])
qqline(Independent$score[Independent$group=="A"])
qqnorm(Independent$score[Independent$group=="B"])
qqline(Independent$score[Independent$group=="B"])
boxplot(score ~ group, data = Independent, col = "blue")
wilcox.test(score ~ group, data = Independent)
#> Warning: cannot compute exact p-value with ties
#>
#> Wilcoxon rank sum test with continuity correction
#>
#> data: score by group
#> W = 349.5, p-value = 0.06321
#> alternative hypothesis: true location shift is not equal to 0
#>