Learn R Programming

BSDA (version 1.2.2)

Poverty: Percent poverty and crime rate for selected cities

Description

Data for Exercise 9.11 and 9.17

Usage

Poverty

Arguments

Format

A data frame/tibble with 20 observations on four variables

city

a factor with levels Atlanta, Buffalo, Cincinnati, Cleveland, Dayton, O, Detroit, Flint, Mich, Fresno, C, Gary, Ind, Hartford, C, Laredo, Macon, Ga, Miami, Milwaukee, New Orleans, Newark, NJ, Rochester,NY, Shreveport, St. Louis, and Waco, Tx

poverty

percent of children living in poverty

crime

crime rate (per 1000 people)

population

population of city

References

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

Examples

Run this code

plot(poverty ~ crime, data = Poverty)
model <- lm(poverty ~ crime, data = Poverty)
abline(model, col = "red")
summary(model)
rm(model)

Run the code above in your browser using DataLab