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
Fixed effects regression is doing something I'm not noticing?In Stata I complete a fixed-effects conditional logistic regression model of a binary predictor (1==…
Interpreting stset- outputHello, I use Stata 15.1 for survival analysis, using a Cox-model (stcox). My master dataset is the U…
Replacing values from one observation to anotherDear Statalist users, this may be a trivial question to you, but I am a little bit struggling to do…
Combining two datasets and keeping specific observationsI have two datasets. Dataset A and Dataset B. Dataset A is my existing data that I have organized an…
table summarizing 3 categorical variables in string form between two groups (binary variable)Hello, I am having a hard time finding examples of summary tables between two groups let's say stud…
Subscribe to:
Post Comments (Atom)
0 Response to Continuous vs binary independent variable in logistic regression
Post a Comment