Hey dear STATA Users,

I am meant to create a dummy variable.
That's literally a set of dummy variables that are based on a combination of "industry" and "occupation". For example, let's assume two industries (education, financial sector) and two occupations (manager, secretary). Then, you can have a four (two multiplied by two) dummy variables: (1) 1 if industry == education and occupation == manager or 0 otherwise; 1 if industry == education and occupation == secretary or 0 otherwise; and (3) and (4) similarly constructed.
But the combination of these two variables is really big.

I tried using egen job = group(occ ind), label but that takes too long.

Does anyone have any suggestions on what I should do?

Thank you!