[R] glmnet package: command meanings

C W tmrsg11 at gmail.com
Thu May 23 21:44:18 CEST 2013


Hi List,
I have a little confused when to glmnet() vs cv.glmnet().

I know that,
glmnet(): gives the fit
cv.glment(): does the cv after the fit

I just want to get the beta coefficients after the fit, that's it!

But of all the glmnet examples I've seen, the beta coefficient is
obtained ONLY AFTER cv.glmnet().

Why is that?  Also, why is there so many more extra beta's after the fit?

Thanks,
Mike



More information about the R-help mailing list