powered by
Data for Exercise 2.6
Ligntmonth
A data frame/tibble with 12 observations on four variables
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
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
9/01/2000
number of deaths due to lightning strikes
number of injuries due to lightning strikes
damage due to lightning strikes (in dollars)
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# 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