doomlab / MOTE

Magnitude of the Effect - An Effect Size and CI calculator
http://www.statstools.com
17 stars 13 forks source link

Interval calculation for odds ratio should be on log odds scale. #4

Open stonegold546 opened 6 years ago

stonegold546 commented 6 years ago

Hello,

It seems like a lot of edits, but that's because my text editor removes whitespace on save. I tried to odds function and the lower limit for the odds ratio was negative. I checked the code and modified the addition of the interval width so it happens on the log odds scale before conversion back to the odds scale. So on lines 34 and 35, I changed the location of the closing parenthesis for the exp function.

-James.