demo/tuneLasso.R

# simulate data 
ex <- simulData(p=100,n=100,r=0.8,rSN=5)

ex1.tuneLasso <- tuneLasso(ex$Y,ex$X)

load(system.file("extdata", "diabetes.rda", package="LINselect"))
attach(diabetes)
ex.diab <- tuneLasso(y,x2)
detach(diabetes)

Try the LINselect package in your browser

Any scripts or data that you put into this service are public.

LINselect documentation built on May 2, 2019, 4:09 a.m.