air {gplsim} | R Documentation |
dataset from an environmental study.
Description
This dataset contains four variables: The concentration of the air pollutant ozone, wind speed, temperature and radiation. All of them are daily measurements for 111 days. Usually the concentration of the air pollutant ozone serves as the response variable while the other three are predictors.
Usage
data("air")
Format
A data frame with 111 observations on the following 4 variables.
ozone
a numeric vector in cube root ppb
radiation
a numeric vector in langley
temperature
a numeric vector in degrees F
wind_speed
a numeric vector in mph
Examples
data(air)
y=air$ozone # response
X=as.matrix(air[,3:4]) # single index term ;
Z=air[,2] # partially linear term ;
result <- gplsim(y,X,Z=Z,family = gaussian,k=10)
result$theta
result$coefficients
summary(result)
# Or you can try different spline basis
result <- gplsim(y,X,Z=Z,family = gaussian,bs="tp",k=10)
result$theta
result$coefficients
summary(result)
[Package gplsim version 1.0.0 Index]