I know the glmnet() function cannot exclude the intercept by users, but does anyone know how to derive the fit without intercept from the glmnet()?
Asked
Active
Viewed 1.2k times
10
chl
- 53,725
Direstraits
- 101
1 Answers
20
For compleness' sake (and because I accidentally bumped in to this question): starting with version 1.9-3, fitting without intercepts is supported (intercept=FALSE).
chl
- 53,725
Nick Sabbe
- 12,819
- 2
- 37
- 47
bayesglmin thearmpackage can fit regularized glms without intercepts (although they aren't sparse). Might be worth looking into other options as well, rather than forcing glmnet to do something it doesn't want to. – David J. Harris Aug 03 '12 at 19:01