4

I have read that glmnet can be used without regularization, i.e. it can be used as a regular glm. I am writing a thesis and trying to avoid using to many different packages, so it would be convenient to use glmnet to do a regular glm logistic regression fitting. Can anyone help me?

Camilla
  • 113
  • 2
  • 12

1 Answers1

5

Setting both tuning parameters alpha and lambda to zero should give you a "normal" logistic regression without regularization.

durron597
  • 31,968
  • 17
  • 99
  • 158
dende85
  • 51
  • 1
  • 3