forward(X, Y, criterion="gcv", df=1.5, Kmin=1, Kmax=10000, smoother="k", kernel="g",
control.par=list(), cv.options=list(),varcrit=criterion)
forwardibr
which is a matrix
with p
columns. In the first row, each entry j contains
the value of the chosen criterion for the univariate smoother using
the jth explanatory variable. The variable which realize the minimum
of the first row is included in the model. All the column of this
variable will be Inf
except the first row. In the second row,
each entry j contains the bivariate smoother using the jth
explanatory variable and the variable already included. The variable
which realize the minimum of the second row is included in the
model. All the column of this variable will be Inf
except the
two first row. This forward selection process continue until the
chosen criterion increases.Cornillon, P.-A.; Hengartner, N. and Matzner-Lober, E. (2013) Recursive bias estimation for multivariate regression smoothers Recursive bias estimation for multivariate regression smoothers. ESAIM: Probability and Statistics. Doi: http://dx.doi.org/10.1051/ps/2013046
ibr
, plot.forwardibr
data(ozone, package = "ibr")
res.ibr <- forward(ozone[,-1],ozone[,1],df=1.2)
apply(res.ibr,1,which.min)
Run the code above in your browser using DataLab