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)
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
0 Response to Generating mean by interacting categorical variables
Post a Comment