Learn R Programming

bestglm (version 0.37.3)

AirQuality: Daily ozone pollution with meteorlogical and date inputs

Description

This dataset was derived from the R built-in dataset `airquality` by adding date information and deleting all missing values. This dataset is referred to as `environmental` in Cleveland (1993).

Usage

data(AirQuality)

Arguments

Format

A data frame with 111 observations on the following 6 variables.

Solar.R

input, a numeric vector

Wind

input, a numeric vector

Temp

input, a numeric vector

month

input, a factor with levels May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr

weekday

input, a factor with levels Sunday Monday Tuesday Wednesday Thursday Friday Saturday

Ozone

output, a numeric vector

Details

Cleveland (1993, Chapter 5) presents an insightful analysis using co-plots and the scatterplot matrix. Several interesting interactions are noted. For a fixed 'Wind`, the effect of 'Solar.R' changes as 'Temp' increases. And for a fixed 'Temp', as 'Wind' decreases, the effect of 'Solar.R' is less.

References

Cleveland, W.S. (1993). Visualizing Data.

Examples

Run this code
# NOT RUN {
data(AirQuality)
#Example 1. Find best model
bestglm(AirQuality, IC="BIC")

# }

Run the code above in your browser using DataLab