**Q: **

I am getting an error in stata “outcome does not vary” when I am trying to run a logistic regression.

**A:**

Stata wants the coding of your dependent variable to be “0” and “1” not “1” and “2”

You can find the answer to many stata problems by searching:

http://www.stata.com/gsearch.php

Here’s the link to an answer to your specific question via this search utility: