Stata Margins Interaction Categorical Variables. The simple way to do this in Stata is to use factor variable notati