- Can you interact two dummy variables?
- How do you combine categorical variables?
- Can you merge two variables in Stata?
Can you interact two dummy variables?
Yes it is perfectly possible. You need to include the interaction term into your model.
How do you combine categorical variables?
You do this by creating a new categorical variable based on the existing categorical variables you want to merge. The new categorical variable will automatically have the same categories as the categorical variables you are merging.
Can you merge two variables in Stata?
Merging two datasets require that both have at least one variable in common (either string or numeric). If string make sure the categories have the same spelling (i.e. country names, etc.). The common variables must have the same name. Explore each dataset separately before merging.