As a part of testing different approaches for my research, I would like to convert categorical variables into binary responses before applying to probabilistic models. For example, one variable has six categories, this should be converted to six variables each with binary responses. Which command of Stata can do this? In my dataset, I have different variables with different categorical scale. Some with 1-6 scale, some with 1-3 scale etc. Is there any way using Stata to convert all these variables to binary variables in one command for all? Thanks for any help.
-
Login or Register
- Log in with
Comment