Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • concentration index and slope index of inequality

    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
    Code:
    conindex education [aweight=v005], rankvar(wealth) truezero cluster(v021) graph ytitle(cumulative share of education) xtitle(rank of wealthindex)
    *child mortality and wealth quintile
    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 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.
    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
    is it the right way to calculate it? thank you for your help!
    Attached Files
Working...
X