Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: ineqdeco Theil
"Stephen P. Jenkins" <firstname.lastname@example.org>
st: ineqdeco Theil
Sat, 13 Mar 2010 13:47:21 -0000
Date: Fri, 12 Mar 2010 21:27:36 +0100
From: muhammed abdul khalid <email@example.com>
Subject: st: ineqdeco Theil
Dear Stata list
How do we decompose the inequality (Theil Index) using the command
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
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 <firstname.lastname@example.org>
Institute for Social and Economic Research (ISER)
University of Essex, Colchester CO4 3SQ, UK
Tel: +44(0)1206 873374. Fax: +44(0)1206 873151
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: