Bookmark and Share

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: Inequality Decomposition and ineqdeco


From   <S.Jenkins@lse.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Inequality Decomposition and ineqdeco
Date   Thu, 27 Dec 2012 10:57:39 -0000

------------------------------
Date: Tue, 25 Dec 2012 00:53:30 +0000
From: Arcangelo Dimico <a.dimico@qub.ac.uk>
Subject: st: Inequality Decomposition and ineqdeco

Dear Statlist;

I have data for US counties and for each county I have the distribution
of income by race. Therefore for each county I have n race and for each
race I have k classes of income and the number of people belonging to
that race within such a class of income (see example below). Given this
data I would like to compute the general level of inequality at county
level and the inequality betweem races. To do that I have been trying
using ineqdeco the ado written by Prof Jenkins with some partial
success. If I run the command county by county I get the decomposition
which I need but this would require to run the command for each of the
3000 counties in my dataset which seems quite a long procedure. For this
reason I was wondering if there is anybody who knows a shortest way to
get the decomposition at a county level. 
Also is there any way to retain results in stata?
Any help is appreciated
thanks
a
county	                       income  total_race nr_within_class
race
Autauga County, Alabama	5000	        43	5	asian
Autauga County, Alabama	12500	43	0	asian
Autauga County, Alabama	17500	43	10	asian
Autauga County, Alabama	22500	43	0	asian
Autauga County, Alabama	27500	43	0	asian
Autauga County, Alabama	32500	43	0	asian
Autauga County, Alabama	37500	43	9	asian
Autauga County, Alabama	42500	43	6	asian
Autauga County, Alabama	47500	43	0	asian
Autauga County, Alabama	55000	43	0	asian
Autauga County, Alabama	67500	43	0	asian
Autauga County, Alabama	87500	43	6	asian
Autauga County, Alabama	112500	43	7	asian
Autauga County, Alabama	137500	43	0	asian
Autauga County, Alabama	175000	43	0	asian
Autauga County, Alabama	200000	43	0	asian
Autauga County, Alabama	5000	        2566	617	blk
Autauga County, Alabama	12500	2566	268	blk
Autauga County, Alabama	17500	2566	271	blk

=========
You appear to be asking too much of -ineqdeco- (latest version on SSC,
with its siblings -ineqdec0- and -povdeco-, etc.). It is not designed to
deal with grouped data, which is what you appear to have. (It could
easily handle a situation in which you had unit record for individuals'
income where individuals are classified by race and county.)
You need first to estimation the distribution of income within each
county by race -- and there are various ways of doing this. I advise you
to search the Statalist archive for previous posts on this and the use
of -ineqdeco-.
Regarding your final question: -ineqdeco- and siblings save results in
r() -- as their help files describe.

Stephen
------------------
Stephen P. Jenkins <s.jenkins@lse.ac.uk> 
Professor of Economic and Social Policy 
Department of Social Policy 
London School of Economics and Political Science 
Houghton Street, London WC2A 2AE, UK
Tel: +44(0)20 7955 6527
The Great Recesssion and the Distribution of Household Incomes, OUP
2013,
http://ukcatalogue.oup.com/product/9780199671021.do
Changing Fortunes: Income Mobility and Poverty Dynamics in Britain, OUP
2011, http://ukcatalogue.oup.com/product/9780199226436.do
Survival Analysis Using Stata:
http://www.iser.essex.ac.uk/survival-analysis
Downloadable papers and software: http://ideas.repec.org/e/pje7.html

Please access the attached hyperlink for an important electronic communications disclaimer: http://lse.ac.uk/emailDisclaimer

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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index