Data for Example 7.16

Rural

Format

A data frame/tibble with 33 observations on two variables

score

child's social adjustment score

area

character variable with values city and rural

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples


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)
}