Learn R Programming

BSDA (version 1.2.0)

Patrol: Years of experience and number of tickets given by patrolpersons in New York City

Description

Data for Example 9.3

Usage

Patrol

Arguments

Format

A data frame/tibble with ten observations on three variables

tickets

number of tickets written per week

years

patrolperson's experience (in years)

log_tickets

natural log of tickets

References

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

Examples

Run this code
# NOT RUN {
model <- lm(tickets ~ years, data = Patrol)
summary(model)
confint(model, level = 0.98)

# }

Run the code above in your browser using DataLab