I am writing for several questions about calculating concentration index and slop index of inequality.
I attached my dataset below.
The first question is, I tried to calculate the concentration index by using the code below:
*education level and wealth quintile
*child mortality and wealth quintile
May I know for the binary variable child mortality (cm), is it correct to calculate the concentration index by using syntax “erreygers”? in addition, since both the variable education and child mortality are not 'ratio' (for example., the coverage rate of education, or the child mortality rate), do i need to do any 'clean' work before i conduct the syntax "conindex"?
may i also ask how to calculate the slop index of inequality for both 'education' and 'child morality' variable (outcome), while "wealth" is the x.
is it the right way to calculate it? thank you for your help!
I attached my dataset below.
The first question is, I tried to calculate the concentration index by using the code below:
*education level and wealth quintile
Code:
conindex education [aweight=v005], rankvar(wealth) truezero cluster(v021) graph ytitle(cumulative share of education) xtitle(rank of wealthindex)
Code:
conindex cm [aweight= v005], rankvar(wealth) erreygers bounded limits(0 1) truezero cluster(v021) graph ytitle(cumulative share of cm) xtitle(rank of wealth)
may i also ask how to calculate the slop index of inequality for both 'education' and 'child morality' variable (outcome), while "wealth" is the x.
Code:
gen popsize = 1 collapse (mean) cm (sum) popsize [fw=v005], by(wealth) gen popsize = 1 riigen agegrp [fw= popsize ] , varprefix(SII) riiname((SII)) reg cm c.SII