Hi, all: 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. [[alternative HTML version deleted]]
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
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