Odds ratio units

24 views
Skip to first unread message

Brett Biebelberg

unread,
Jul 14, 2021, 9:12:44 PM7/14/21
to pystatsmodels
Hi, list.  In short, I'm wondering how statsmodels handles odds ratio units.

I'm running logistic regressions in Python using statsmodels logit and, downstream, am calculating odds ratios for each independent variable (i.e., exp(B)).

I know that, conventionally, an odds ratio is interpreted per "one unit" increase in the value of the variable. I think my ultimate question is how can I determine with certainty what "one unit" really is for each variable, and if it depends upon the precision of the data for the relevant column.

One parameter, respiratory_rate, has values in integers (22, 26, 30, 12, etc.). So I think I can safely assume a one unit increase in respiratory_rate would be one whole number.

However, a second parameter, temperature, has values with decimal points to the tenths place (97.8, 98.4, 99.5, 100.3, etc.). Here, for the odds ratio for temperature, would the "one unit increase" be an increase in tenths, i.e., an increase of 0.1?  Or is a one-unit difference literally  a "difference of 1.0" in the value of the predictor?

Thank you,

Brett

josef...@gmail.com

unread,
Aug 10, 2021, 9:04:00 AM8/10/21
to pystatsmodels
I just found this in my spam folder.

I guess the question has been answered on stackoverflow.

--
You received this message because you are subscribed to the Google Groups "pystatsmodels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pystatsmodel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/1e038946-dc01-40d3-9e74-7ea1e97d999cn%40googlegroups.com.

Brett Biebelberg

unread,
Aug 10, 2021, 9:16:22 AM8/10/21
to pystat...@googlegroups.com
It has. Thank you, Josef. 

You received this message because you are subscribed to a topic in the Google Groups "pystatsmodels" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pystatsmodels/U-qKxyh_LR0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pystatsmodel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/CAMMTP%2BD63wDdz6SPmz0BTZXqQi0C4s%2BML1q0r4QPvvz8%2BNAWqQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages