ozoneCalif: Ozone Concentration and Meteorology in California

ozoneCalifR Documentation

Ozone Concentration and Meteorology in California

Description

Daily ozone concentration with three meteorological variables (345 days), a version of the Los Angeles ozone data of Breiman and Friedman (1985); the data of M. P. Wand's additive model examples (fitted by lme() and by gam()).

Usage

data(ozoneCalif)

Format

A data frame with 345 rows and 4 columns:

ozone

ozone concentration.

inversion.base.height

inversion base height.

daggett.pressure.gradient

pressure gradient (Los Angeles to Daggett).

inversion.base.temp

inversion base temperature.

Source

Breiman, L. and Friedman, J. H. (1985). Estimating optimal transformations for multiple regression and correlation. Journal of the American Statistical Association, 80, 580-598.

Examples

data(ozoneCalif)
# an additive model: three O'Sullivan splines
fit <- semireg(ozone ~ s(inversion.base.height, bs = "os", k = 15) +
                 s(daggett.pressure.gradient, bs = "os", k = 15) +
                 s(inversion.base.temp, bs = "os", k = 15), data = ozoneCalif)
anova(fit)$smooth     # is each curve more than a straight line?
# the effect of one covariate, the others at their means
semipred(fit, covariate = "inversion.base.temp")$plt

predictmeans documentation built on Nov. 24, 2026, 5:10 p.m.