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
Number of children in household variable from individual level datasetDear all I am using the PALMS dataset (Post-Apartheid Labour Market Survey) - it is a stacked crosse…
Gravity model - HS6 product level - PPML and fixed effectsHi, For my Master's thesis I would like to estimate a gravity model using three specifications: Bil…
Frequencies of Multiple Variables in one Table(one way)Hello everyone, I have a problem concerning displaying frequencies of different variables in a tabl…
Rounding off or changing data type for household idHello This is a conceptual question. I have a dataset running into 6000 household ids some of which …
Transforming dataset with several variables and a 'value' variableDear all, I have a problem in Stata that I have been struggling with for quite some time now. As yo…
Subscribe to:
Post Comments (Atom)
0 Response to Continuous vs binary independent variable in logistic regression
Post a Comment