Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Gini decomposition by population subgroup


From   "Stephen P. Jenkins" <[email protected]>
To   [email protected]
Subject   st: Gini decomposition by population subgroup
Date   Thu, 3 Oct 2002 14:10:47 +0100 (GMT Daylight Time)

On Thu, 03 Oct 2002 11:02:43 +0000 Ye Xu <[email protected]> wrote:

> Question:
> 
> What I want to do is to compute an index of land inequality
> at the regional level. Let's call the region a district.
> I start out with household (hh) level data  (and each hh has an ID, 
> "oldhhid").
> for each hh, I know the amount of land owned in acres (this
> goes from zero to some large number).
> each hh lives in a district (a region) and in my data this
> is identified by the ID "iddist".
> I want to find inequality in land-distribution within each
> district.
> I have already checked stata's ado file listthere is a program that 
> calculates the gini coefficient.
> but if I use it direclty on household data I will get
> 1 gini coeff for the whole of data. I want a different
> gini coeff for each district. (ie I want gini (or inequality)
> BY DISTTICT).

Try
	ineqdeco acres, by(iddist)

In an up-to-date Stata 7, you can ensure you have the latest 
versions of the -ineqdeco- (and -ineqdec0-) programs by typing
	ssc install ineqdeco
	ssc install ineqdec0
Add ", replace" to the commands if you already have older versions.


Stephen
----------------------
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

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index