R/BSDA-package.R
Hostile.Rd
Data for Example 10.6
Hostile
A data frame/tibble with 135 observations on two variables
a factor with the location of the high school student
(Rural
, Suburban
, or Urban
)
the score from the Hostility Level Test
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
boxplot(hostility ~ location, data = Hostile,
col = c("red", "blue", "green"))
kruskal.test(hostility ~ location, data = Hostile)
#>
#> Kruskal-Wallis rank sum test
#>
#> data: hostility by location
#> Kruskal-Wallis chi-squared = 11.607, df = 2, p-value = 0.003018
#>