Learn R Programming

BSDA (version 1.2.0)

Ligntmonth: Relationship between damage reports and deaths caused by lightning

Description

Data for Exercise 2.6

Usage

Ligntmonth

Arguments

Format

A data frame/tibble with 12 observations on four variables

month

a factor with levels 1/01/2000, 10/01/2000, 11/01/2000, 12/01/2000, 2/01/2000, 3/01/2000, 4/01/2000, 5/01/2000, 6/01/2000, 7/01/2000, 8/01/2000, and 9/01/2000

deaths

number of deaths due to lightning strikes

injuries

number of injuries due to lightning strikes

damage

damage due to lightning strikes (in dollars)

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 {
plot(deaths ~ damage, data = Ligntmonth)
model = lm(deaths ~ damage, data = Ligntmonth)
abline(model, col = "red")
rm(model)

# }

Run the code above in your browser using DataLab