Q:

Summarizing statistics (mean, sd) in Stata, when there are three dichotomous explanatory variables

I am trying to create a table of summary statistics (mean, sd) for a DV when there are three dichotomous IV. Using the command tab IV1 Iv2, sum (DV) I can create a summary statistics table for only two IV variables, but not for three. However, I need the summary stats for the three IV and their interactions. Is there any way around? An alternative command? Thanks!

A:

You can make an interaction variable like this: 
webuse nlswork
egen interaction = group(race nev_mar union), label
tab interaction, sum(ln_wage)

