Learn R Programming

BSDA (version 1.2.2)

Hostile: Hostility levels of high school students from rural, suburban, and urban areas

Description

Data for Example 10.6

Usage

Hostile

Arguments

Format

A data frame/tibble with 135 observations on two variables

location

a factor with the location of the high school student (Rural, Suburban, or Urban)

hostility

the score from the Hostility Level Test

References

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

Examples

Run this code

boxplot(hostility ~ location, data = Hostile, 
        col = c("red", "blue", "green"))
kruskal.test(hostility ~ location, data = Hostile)

Run the code above in your browser using DataLab