R/BSDA-package.R
Rural.Rd
Data for Example 7.16
Rural
A data frame/tibble with 33 observations on two variables
child's social adjustment score
character variable with values city
and rural
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
boxplot(score ~ area, data = Rural)
wilcox.test(score ~ area, data = Rural)
#> Warning: cannot compute exact p-value with ties
#>
#> Wilcoxon rank sum test with continuity correction
#>
#> data: score by area
#> W = 178, p-value = 0.1346
#> alternative hypothesis: true location shift is not equal to 0
#>
if (FALSE) {
library(dplyr)
Rural <- dplyr::mutate(Rural, r = rank(score))
Rural
t.test(r ~ area, data = Rural)
}