Skip to content
Advertisement

statsmodels logistic regression odds ratio

I’m wondering how can I get odds ratio from a fitted logistic regression models in python statsmodels.

JavaScript

Advertisement

Answer

You can get the odds ratio with:

JavaScript

To also get the confidence intervals (source):

JavaScript

Disclaimer: I’ve just put together the comments to your question.

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