Learn R Programming

BSDA (version 1.2.0)

Toxic: Hazardous waste sites near minority communities

Description

Data for Exercises 1.55, 5.08, 5.109, 8.58, and 10.35

Usage

Toxic

Arguments

Format

A data frame/tibble with 51 observations on five variables

state

U.S. state

region

U.S. region

sites

number of commercial hazardous waste sites

minority

percent of minorities living in communities with commercial hazardous waste sites

percent

a numeric vector

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 {
hist(Toxic$sites, col = "red")
hist(Toxic$minority, col = "blue")
qqnorm(Toxic$minority)
qqline(Toxic$minority)
boxplot(sites ~ region, data = Toxic, col = "lightgreen")
tapply(Toxic$sites, Toxic$region, median)
kruskal.test(sites ~ factor(region), data = Toxic)

# }

Run the code above in your browser using DataLab