On Mar 20, 2012, at 3:17 PM, Patrick Breheny wrote:
On 03/20/2012 09:41 AM, Yuanyuan Tang wrote:
Does anybody know how to avoid the intercept term in cv.glmnet
coefficient?
When I say "avoid", it does not mean using coef()[-1] to omit the
printout
of intercept, it means no intercept at all when doing the analysis.
Thanks.
I do not believe that is possible with the current implementation of
glmnet. The glmnet() function includes an intercept by default and
there are no options which allow the user to change this.
David Winsemius, MD
West Hartford, CT
______________________________________________
R-help@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.