How can I create country dummies? Industry and year dummies are numeric and easy to transform to dummies. But, the data type of country variables is character. Do I need to transform country variables into numeric ones before creating dummies?
I tried to create numeric country dummies as follows.
Code:
encode country, gen
0 Response to Creation and anaysis of dummy variables
Post a Comment