Hi everyone,
I need to calculate Gini Coefficient for a dataset that is organised as follows.
County ID - Group - Number of People - Average Income
1 - 1 - 100 - 234
1 - 2 - 264 - 745
1 - 3 - 145 - 1,565
and so on...for multiple counties. Each county has group level data and each group represents a particular income bracket(1 is between 0 - 500, 2 is between 500-1,000, 3 is 1,000-2,000 and so on. My assumption is that for Group 1, all 100 people have an income of 234, for Group 2 all 264 people have an income of 745 and so on. How can I calculate Gini coefficient at county level?
If I use ginidesc Average Income, bygroup(County ID), Stata assumes one observation in each group and then calculates Gini Coefficient. In my case each group has multiple observations so I need some other command.
Any help or suggestion is highly appreciated.
Thanks a ton
Best Regards
Pushkar
I need to calculate Gini Coefficient for a dataset that is organised as follows.
County ID - Group - Number of People - Average Income
1 - 1 - 100 - 234
1 - 2 - 264 - 745
1 - 3 - 145 - 1,565
and so on...for multiple counties. Each county has group level data and each group represents a particular income bracket(1 is between 0 - 500, 2 is between 500-1,000, 3 is 1,000-2,000 and so on. My assumption is that for Group 1, all 100 people have an income of 234, for Group 2 all 264 people have an income of 745 and so on. How can I calculate Gini coefficient at county level?
If I use ginidesc Average Income, bygroup(County ID), Stata assumes one observation in each group and then calculates Gini Coefficient. In my case each group has multiple observations so I need some other command.
Any help or suggestion is highly appreciated.
Thanks a ton
Best Regards
Pushkar
Comment