Dear StataListers,
I am trying to re-allocate income (x) across members of J sub-groups classified according to a certain criterion (such as by sex, by region or by educational background of parents) so as to maximize between-group variance or inequality of distribution with respect to x. This implies that in the new counterfactual distribution sub-group incomes occupy non-overlapping intervals. To be more specific, if I have the J groups ordered from 1 to J (g1, g2, ...,gJ) with each having size nj (sum(nj)=n sample size), I need to re-assign incomes (not individuals) so as to maximize inter-group variance (or inequality) of income, while preserving the number of sub-groups, their rank ordering and relative sizes. The procedure suggested in the literature consists of allocating the lowest income to g1, then to g2, etc.
I use the following example for illustrative purpose:
/* simple example */
input ind x str1 grp
1 2000 R
2 4300 U
3 5200 R
4 8500 U
5 8800 U
6 11000 R
7 12500 U
end
sort grp
/* How to obtain the rank ordering and the new distribution that look like this
ngrp xnew
R 2000
R 4300
R 5200
U 8500
U 8800
U 11000
U 12500
I would appreciate any suggestions for obtaining this outcome especially, for a larger number of groups of different sizes.
Thank you in advance.
Imed.
I am trying to re-allocate income (x) across members of J sub-groups classified according to a certain criterion (such as by sex, by region or by educational background of parents) so as to maximize between-group variance or inequality of distribution with respect to x. This implies that in the new counterfactual distribution sub-group incomes occupy non-overlapping intervals. To be more specific, if I have the J groups ordered from 1 to J (g1, g2, ...,gJ) with each having size nj (sum(nj)=n sample size), I need to re-assign incomes (not individuals) so as to maximize inter-group variance (or inequality) of income, while preserving the number of sub-groups, their rank ordering and relative sizes. The procedure suggested in the literature consists of allocating the lowest income to g1, then to g2, etc.
I use the following example for illustrative purpose:
/* simple example */
input ind x str1 grp
1 2000 R
2 4300 U
3 5200 R
4 8500 U
5 8800 U
6 11000 R
7 12500 U
end
sort grp
/* How to obtain the rank ordering and the new distribution that look like this
ngrp xnew
R 2000
R 4300
R 5200
U 8500
U 8800
U 11000
U 12500
I would appreciate any suggestions for obtaining this outcome especially, for a larger number of groups of different sizes.
Thank you in advance.
Imed.
Comment