I need to generate Gini and Theil indices for each state (uf) and year (ano) combination of a database consisting of 27 states and 5 years. I tried the following syntax:
But the Stata informs me that the command "inequal" can not be combined with "by".
I would like your help to find out how I can do this using the "inequal" command, or another command that you can show me.
Thanks in advance
Girlan Oliveira
bysort uf ano: inequal rendpc [fw = pesopes]
I would like your help to find out how I can do this using the "inequal" command, or another command that you can show me.
Thanks in advance
Girlan Oliveira
Comment