Hello!
I am working on regional income disparities and for that I wanted to calculate the Theil Index (and the Wiliamsons coefficient if it is possible). My income data is by region and time (from 2004 to 2023). I would like to get the index for each year, to see what the trend is in the last 20 years. I also have the population of each year by region.
I have been trying to run the following command but something seems to not be working well.
ineqdeco adjusted_regional_income_2004 [fw=pop2004], by(region)
I was planning on doing this for every year, but I get the error of "no observations". Do you perhaps know why?
Also, is there a faster way to get the index for every year?
Thank you so much for any help or advise you can provide.
I am working on regional income disparities and for that I wanted to calculate the Theil Index (and the Wiliamsons coefficient if it is possible). My income data is by region and time (from 2004 to 2023). I would like to get the index for each year, to see what the trend is in the last 20 years. I also have the population of each year by region.
I have been trying to run the following command but something seems to not be working well.
ineqdeco adjusted_regional_income_2004 [fw=pop2004], by(region)
I was planning on doing this for every year, but I get the error of "no observations". Do you perhaps know why?
Also, is there a faster way to get the index for every year?
Thank you so much for any help or advise you can provide.
Comment