Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • $\begingroup$ I would call this an answer, but this is really an R questions and not a stat question. glmnet automatically standardizes the data for you. Check the documentation. Of course, with things like this, 'it's trust, but verify', so doing it yourself is always a good idea. In fact the documentation claims that for logistic regressions, you probably don't want to do this. $\endgroup$ Commented Jun 20, 2018 at 16:01
  • 1
    $\begingroup$ It isnt really an R Question ,since I dont ask for the standardization itself. I just want to know what happens there if we doesnt standardize with glmnet and doing some multplication $\endgroup$ Commented Jun 20, 2018 at 16:03
  • 1
    $\begingroup$ I actually withdraw my comment and I'm working on an answer. $\endgroup$ Commented Jun 20, 2018 at 16:17
  • $\begingroup$ But off the bat I would point out that the lambda's used are very different for the two fits- reflecting the scaling of the variable. $\endgroup$ Commented Jun 20, 2018 at 16:21