Poverty | R Documentation |
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
percent of children living in poverty
crime rate (per 1000 people)
population of city
Children's Defense Fund and the Bureau of Justice Statistics.
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(poverty ~ crime, data = Poverty)
model <- lm(poverty ~ crime, data = Poverty)
abline(model, col = "red")
summary(model)
rm(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.