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


From   Arcangelo Dimico <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Inequality Decomposition and ineqdeco
Date   Tue, 25 Dec 2012 00:53:30 +0000

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




*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index