Learn R Programming

BSDA (version 1.01)

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 with 20 observations on the following 6 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 Waco, Tx

Poverty

a numeric vector

Crime

a numeric vector

cindex

a numeric vector

popu

a numeric vector

ratio

a numeric vector

Examples

Run this code
# NOT RUN {
str(Poverty)
attach(Poverty)
plot(Crime,Poverty)
model <- lm(Poverty~Crime)
abline(model)
summary(model)
detach(Poverty)
remove(model)
# }

Run the code above in your browser using DataLab