Skip to content

ENH: warn if (near) singular design in discrete, GLM #8409

Open

Description

@josef-pkt

Optimization in discrete models and GLM might not fail with singular or near-singular matrix.

We should add a warning text to summary similarly as in linear models OLS, ...

example blog post that has collinear dummies
dummy for each weekday except reference and a weekend dummy which is the same as Saturday plus Sunday.

My guess is that in this large sample case (nobs= 1.6 million), the small ridge penalty in the newton optimizers works as regularized estimator similar to pinv (I haven't looked at this in a while, #953 is still open)

However, standard errors for the collinear variables are huge, so that should point out to users that something is strange or wrong.

from https://medium.com/@lucydickinson/how-to-interpret-the-odds-ratio-with-categorical-variables-in-logistic-regression-5bb38e3fc6a8

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions