[R] glmnet package: command meanings

1 view
Skip to first unread message

C W

unread,
May 23, 2013, 3:44:18 PM5/23/13
to r-help
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

______________________________________________
R-h...@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply all
Reply to author
Forward
0 new messages