I have a .txt file containing a dataset with 500 samples. There are 10
variables.
I am trying to perform variable selection using the ridge regression
method but I am very confused.
I have input the following:
diabetes10<-read.table("diabetes10.txt", header=TRUE)
diabetes10
library(MASS)
select(lm.ridge(y=diabetes10 ~ age+sex+bmi+map+tc , diabetes10,
lambda = seq(0,0.1,0.0001)))
First of all, i am confused about the lamda values,
Second of all, my output is:
modified HKB estimator is -1.334073e-29
modified L-W estimator is -5.610557e-28
smallest value of GCV at 1e-04
I have no idea what that is telling me and where I am supposed to work out
which variables have been selected.
Someone help me out please!