# NOT RUN {
d = 10
X = matrix(1,90,d)
for (i in 1:d)
X[,i] = rnorm(90)
Y = X[,3]^3 + X[,6]^2 + sin(1/2*pi*X[,9]) + rnorm(90)
#npvarselec(X, Y, method = "forward", p = 9, degree.pol = 0,
#kernel.type = "trun.normal", bandwidth = "CV")
#-------------------------------------------------------------
#Iter. | Variables in the model
#1 | 3
#2 | 3 9
#3 | 3 9 6
#-------------------------------------------------------------
#
#
#Number of Covariates Selected: 3
#
#Covariate(s) Selected:
#---------------------------
#Covariate Index | p-value
# 3 | 0
# 9 | 7e-14
# 6 | 0
#---------------------------
# }
Run the code above in your browser using DataLab