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
Any suggestions on addressing endogeneity while estimating Veblen Effect.How do I make sure that price coefficient is positive because the good is veblen or there is unadres…
Storing and graphing the lincom estimates (inside the loop)After running the regression, I did the lincom, and then stored the estimates (with local as well as…
Selectively dropping 1 of 2 similar variables measured on the same dateData cleaning question: I have a longitudinal data set from 2009 to 2020 involving children and adol…
Creating biological and step families with the new ADD Health Parent DataHello Statalist! I am fairly new at analyzing data and I am hoping someone will be able to help me …
Robustness checkHello, I am using local projection method, and my data is panel fixed effect , I have two questions …
Subscribe to:
Post Comments (Atom)
0 Response to Continuous vs binary independent variable in logistic regression
Post a Comment