[R] cv.glmnet

David Winsemius dwinsemius at comcast.net
Tue Mar 20 20:30:27 CET 2012


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



More information about the R-help mailing list