[R] cv.glmnet

Patrick Breheny patrick.breheny at uky.edu
Tue Mar 20 20:17:08 CET 2012


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.

-- 
Patrick Breheny
Assistant Professor
Department of Biostatistics
Department of Statistics
University of Kentucky



More information about the R-help mailing list