Skip to content
Advertisement

Ordered Logit in Python?

I’m interested in running an ordered logit regression in python (using pandas, numpy, sklearn, or something that ecosystem). But I cannot find any way to do this. Is my google-skill lacking? Or is this not something that’s been implemented in a standard package?

Advertisement

Answer

Update: Logit and Probit Ordinal regression models are now built in to statsmodels.

https://www.statsmodels.org/devel/examples/notebooks/generated/ordinal_regression.html

JavaScript

Examples are given in the documentation above. For example:

JavaScript

The catch is that the development version of statsmodels is far ahead of the release. They say that installing the dev version of statsmodels is okay for everyday use. So I used the following:

JavaScript

to do so.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement