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.
A data frame with 111 observations on the following 4 variables.
a numeric vector in cube root ppb
a numeric vector in langley
a numeric vector in degrees F
a numeric vector in mph
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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.