powered by
lm.ridge.univariate(x,y,lambda=0,scale=TRUE)
length(lambda)
lm.ridge
ridge.net
ridge.cv
n<-100 # number of observations x<-rnorm(100) y<-rnorm(n) ridge.object<-lm.ridge.univariate(x,y,lambda=1:10)
Run the code above in your browser using DataLab