Announcement

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

  • How to weight the Gini coefficient decomposition?

    hi all,

    i want the Gini coefficient decomposition in Lerman-Yitzhaki's method.
    but "descogini" doesn't support weights.

    so, im trying to use DASP's "diginis".
    however, I still haven't found an command that applies weights.

    can you tell me how i can apply weights while using Lerman-Yitzhaki's method?
    thanks,

  • #2
    You can do that with -sgini- available on ssc (check the sourcedecomposition option). Documentation is available here: http://www.vankerm.net/stata/manuals/sgini.pdf

    Code:
    ssc install sgini
    use http://www.stata-press.com/data/r9/nlswork , clear
    tsset idcode year
    gen w = exp(ln_wage)
    sgini w L.w L2.w , source
    Good luck
    Philippe

    Comment

    Working...
    X