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
Two-way line error: cmis() not allowedI'm receiving an error when using cmis(n) for twoway line in Stata 16. I'm working with this toy exa…
Transforming continuous variablesHello, I have continuous variables age and BMI. I need to apply this but I do not understand what it…
Concatenation of variables without duplicatesHello everyone, I have a small question of data management, impossible to find the answer in "Data M…
Trying to match patientsHi Statalist, I am trying to create a matched cohort of patients based on a single lab value (CEA).…
Merge by person number and household ID?Hello, I am trying to merge data sets with many waves. Both have variable of PNID and HHID. But when…
Subscribe to:
Post Comments (Atom)
0 Response to Continuous vs binary independent variable in logistic regression
Post a Comment