Logistic Regression – Working with Binary Dependent and Independent Variables

logistic

Is it appropriate to do a logistic regression where both the dependent and independent variables are binary? for example the dependent variable is 0 and 1 and the predictors are contrast coded variables -1 and 1 ?

Best Answer

There is no reason not to do this, but two cautionary thoughts:

  1. Keep careful track during the analysis of which is which. In large projects, it can be easy to get lost, and produce errant results.

  2. If you choose to report regression estimates, rather than odds ratios, make your coding scheme clear in your report, so readers don't produce inaccurate ORs on their own assuming they were both coded 0,1.

May seem basic, but I've seen both problems make it into published papers.

Related Question