Learn R Programming

BSDA (version 1.2.1)

Precinct: Robbery rates versus percent low income in eight precincts

Description

Data for Exercise 2.2 and 2.38

Usage

Precinct

Arguments

Format

A data frame/tibble with eight observations on two variables

rate

robbery rate (per 1000 people)

income

percent with low income

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(rate ~ income, data = Precinct)
model <- (lm(rate ~ income, data = Precinct))
abline(model, col = "red")
rm(model)

Run the code above in your browser using DataLab