Hi all
I would like to generate a new variable newvar that is the mean of the dummy variable dummy by the interaction of year and place (both categorical variables).

I have tried using
HTML Code:
mean bad, over(season)
however this only works for one variable, when I try the two together I get returned with" interactions not allowed".
When I use just one of season or place the command works fine however this is not what I'm looking for.

Any solution would be much appreciated