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
Dropping rows based on their position related to another rowHello! I'm trying to drop rows based on their position related to another row specified in a compou…
How to remove x axis labels in bar graphsHi I need to make a bar graph in Stata with over 600 categories. Given the large number of categorie…
Finding time trends in each variableI am working with panel data of 311 local authorities over 20 quarters. Is there a simple way to fin…
help with lags and autocorrelationHello!!! So i am trying to choose how many lags to do, and someone helped me with some code but i do…
how to drop entire household (of two) if at least one household member has at least one missing on all explanatory variablesDear Statalist, each household consists of a man and a woman (female==1). I want to drop every hous…
Subscribe to:
Post Comments (Atom)
0 Response to Continuous vs binary independent variable in logistic regression
Post a Comment