I have uploaded a data set from Excel into Stata and have a variable "D" that consists of "male" or "female". I would like to convert this into a dummy variable so male = 0 and female = 1. I already encoded it so I have D1 is D==Female and D2 is D==Male. How do I go about doing this?
-
Login or Register
- Log in with
Comment