Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: ineqdeco Theil


From   "Stephen P. Jenkins" <[email protected]>
To   <[email protected]>
Subject   st: ineqdeco Theil
Date   Sat, 13 Mar 2010 13:47:21 -0000

>>>>>>>>>>>>>>>>>>>>>>>>>
Date: Fri, 12 Mar 2010 21:27:36 +0100
From: muhammed abdul khalid <[email protected]>
Subject: st: ineqdeco Theil

Dear Stata list

How do we decompose the inequality (Theil Index) using the command
 ineqdeco?

I tried to decompose the income by race AND strata, but it wont work. This
is what i wrote at the command

ineqdeco income , by (race strata)


If I do just by race , it works. same with strata or any other grouping. Is
it possible to decompose by more than one group?

Thank you so much in advance

Muhammed
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

There is no reason why -ineqdeco- should do what you want directly: the syntax refers to a "varname", not "varlist", for the -by()- option.

If you wish to do a multi-way decomposition, then you can do it as suggested in the -ineqdeco-/-inedqdec0- help file. First create the multi-group variable, and then do the decomposition: 

    egen raceXstrata = group(race strata) // Warning: ensure obs with missing values are treated as desired

    ineqdeco income, by(raceXstrata)

Avoid inserting additional spaces in your commands.

Also ensure you have the latest versions of the programs: check with -adoupdate- or -ssc install-.

Two points about Statalist etiquette:
(1) If you wish to start a new thread, as you tried to do, please do /not/ simply reply to a different thread and change the subject line. This messes up the archiving progress. Instead, start with a new message.
(2) If referring to programs that are not shipped with Stata itself, you should state their origin. (In this case, it is SSC.)

Stephen (author of -ineqdeco-, -ineqdec0-)
-------------------------------------
Professor Stephen P. Jenkins <[email protected]>
Institute for Social and Economic Research (ISER)
University of Essex, Colchester CO4 3SQ, UK
Tel: +44(0)1206 873374. Fax: +44(0)1206 873151
http://www.iser.essex.ac.uk 
Survival Analysis using Stata: http://www.iser.essex.ac.uk/survival-analysis  
Downloadable papers and software: http://ideas.repec.org/e/pje7.html 



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index