I'm new to statistics and coding so apologize if this is a dumb question but here it goes:
I'm running a logistic regression model with a binary dependent variable and when I use a continuous variable as an independent variable (min 0, max 2,330), I get an OR of 1. When I categorize this continuous variable into 2 categories and run the regression model again using this new binary variable as independent variable, I get an OR of 22, p<0.001.
What is the most appropriate way to run it, using a binary or continuous variable? and why could it be that there is such a big difference?
Thanks!
Related Posts with Continuous vs binary independent variable in logistic regression
Cox regression hazard ratio interpretation----------------------- Code: * Example generated by -dataex-. For more info, type help dataex clea…
Counting unique ID who taught a course in a given district and schoolHi, I imagine this question has already been answered but I cannot seem to find it. I want to figure…
Number of instruments more than number of groups in estimation resultI am a first-time user of STATA. I am trying to use system GMM to estimate a social welfare function…
Deleting household member when panelist and moving other household members into the gapHi, I’ve been working on a large panel study. We’ve reshaped a database for the entire population by…
calculation odd ratio for interaction terms using LincomI am doing logistic regression to look at several predictors for a certain outcome. I checked the in…
Subscribe to:
Post Comments (Atom)
0 Response to Continuous vs binary independent variable in logistic regression
Post a Comment