| ozoneCalif | R Documentation |
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()).
data(ozoneCalif)
A data frame with 345 rows and 4 columns:
ozone concentration.
inversion base height.
pressure gradient (Los Angeles to Daggett).
inversion base temperature.
Breiman, L. and Friedman, J. H. (1985). Estimating optimal transformations for multiple regression and correlation. Journal of the American Statistical Association, 80, 580-598.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.