air | R Documentation |
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.
data("air")
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.