air: dataset from an environmental study.

Description Usage Format Examples

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

1
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

 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)

zzz1990771/gplsim documentation built on Nov. 25, 2021, 9:21 a.m.