Learn R Programming

BSDA (version 1.2.0)

Rural: Social adjustment scores for a rural group and a city group of children

Description

Data for Example 7.16

Usage

Rural

Arguments

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

Run this code
# NOT RUN {
boxplot(score ~ area, data = Rural)
wilcox.test(score ~ area, data = Rural)
# }
# NOT RUN {
library(dplyr)
Rural <- dplyr::mutate(Rural, r = rank(score))
Rural
t.test(r ~ area, data = Rural)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab