[R] "cv.glmnet" object

2012-03-28 Thread yx78
dose anybody know In "cv.glmnet" object say fit=cv.glmnet(x,y) what is matrix "x", if it is a data frame or something else thanks a lot -- View this message in context: http://r.789695.n4.nabble.com/cv-glmnet-object-tp4514236p4514236.html Sent from the R help mailing list archive at Nabble.co

[R] lasso constraint

2012-03-27 Thread yx78
In the package lasso2, there is a Prostate Data. To find coefficients in the prostate cancer example we could impose L1 constraint on the parameters. code is: data(Prostate) p.mean <- apply(Prostate, 5,mean) pros <- sweep(Prostate, 5, p.mean, "-") p.std <- apply(pros, 5, var) pros <- swe

Re: [R] relative L1 bound

2012-03-26 Thread yx78
by the way 0.44 is the optimal choice of lasso constrain. -- View this message in context: http://r.789695.n4.nabble.com/relative-L1-bound-tp4504620p4504678.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

[R] relative L1 bound

2012-03-25 Thread yx78
In the package lasso2, there is a Prostate Data. To find coefficients in the prostate cancer example we could impose L1 constraint on the parameters. code is: data(Prostate) p.mean <- apply(Prostate, 5,mean) pros <- sweep(Prostate, 5, p.mean, "-") p.std <- apply(pros, 5, var) pros <- sweep(pr