powered by
Data for Exercise 9.11 and 9.17
Poverty
A data frame/tibble with 20 observations on four variables
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
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
Waco, Tx
percent of children living in poverty
crime rate (per 1000 people)
population of city
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# NOT RUN { 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