I have a categorical variable with three categories (1, 2, 3). I want to find the percentage share of each category per year per state. I can get the results I want if I write:
Code:
tab var if year==1977 & state==1
Thank you in advance for your time.
Kind regards,
Alexandros Achilleos
0 Response to Estimating shares for a categorical variable per year and per state
Post a Comment