Hello everyone,
I'm new to Stata and this forum, so please forgive my lack of knowledge. I have to calculate different inequality measures for a given dataset (Gini, Atkinson, Theil, etc...) for different population categories. This is fairly simple to do with the ineqdeco package.
With the different measures, some group rank differently (from most unequal to most equal). I have listed to difference in ranking simply by adding a comment in the do file, but I'd like to create a more elegant table that can automatically pick these differences in ranking. So I am imagining the population categories as the rows and the ranking order as the columns. Is there a way to do this by directly linking the ineqdeco results to this table, such that should the results change (becasue of changes to the dataset, let's say), then the ranking and the table would also automatically change?
This is the ineqdeco command I'm using: ineqdeco incomepc [w=WT], by(ID13)
* incomepc is my variable of interest
* weighted by WT
* and my population categories are ID13
I hope my query is clear enough. I'm using the lastest version of Stata.
Thank you for your time,
Clara
I'm new to Stata and this forum, so please forgive my lack of knowledge. I have to calculate different inequality measures for a given dataset (Gini, Atkinson, Theil, etc...) for different population categories. This is fairly simple to do with the ineqdeco package.
With the different measures, some group rank differently (from most unequal to most equal). I have listed to difference in ranking simply by adding a comment in the do file, but I'd like to create a more elegant table that can automatically pick these differences in ranking. So I am imagining the population categories as the rows and the ranking order as the columns. Is there a way to do this by directly linking the ineqdeco results to this table, such that should the results change (becasue of changes to the dataset, let's say), then the ranking and the table would also automatically change?
This is the ineqdeco command I'm using: ineqdeco incomepc [w=WT], by(ID13)
* incomepc is my variable of interest
* weighted by WT
* and my population categories are ID13
I hope my query is clear enough. I'm using the lastest version of Stata.
Thank you for your time,
Clara
Comment