p2.13 {MPV} | R Documentation |
The p2.13
data frame has 16 observations on the number
of days the ozone levels exceeded 0.2 ppm in the
South Coast Air Basin of California for the years 1976 through
1991. It is believed that these levels are related to temperature.
data(p2.13)
This data frame contains the following columns:
Montgomery, D.C., Peck, E.A., and Vining, C.G. (2001) Introduction to Linear Regression Analysis. 3rd Edition, John Wiley and Sons.
Davidson, A. (1993) Update on Ozone Trends in California's South Coast Air Basin. Air Waste, 43, 226-227.
data(p2.13) attach(p2.13) plot(days~index, ylim=c(-20,130)) ozone.lm <- lm(days ~ index) summary(ozone.lm) # plots of confidence and prediction intervals: ozone.conf <- predict(ozone.lm, interval="confidence") lines(sort(index), ozone.conf[order(index),2], col="red") lines(sort(index), ozone.conf[order(index),3], col="red") ozone.pred <- predict(ozone.lm, interval="prediction") lines(sort(index), ozone.pred[order(index),2], col="blue") lines(sort(index), ozone.pred[order(index),3], col="blue") detach(p2.13)