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]
Re: st: Computing summary statistics for peer groups of each individual leaving out the individual herself
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Computing summary statistics for peer groups of each individual leaving out the individual herself
Date
Tue, 11 Mar 2014 09:44:23 +0000
This is an FAQ
http://www.stata.com/support/faqs/data-management/creating-variables-recording-properties/
For "gini" read "Gini".
Nick
[email protected]
On 11 March 2014 02:40, Roychowdhury, Punarjit <[email protected]>
I want to compute income summary statistics (mean and variance) and
gini index for peer groups of each individual without including the
income of the individual herself in the measure. I have individual
level data on income for individuals living in different villages
(which is my peer group). Let i denote individual and j denote
village. I essentially want to calculate mean income (-i)j, income
variance (-i)j, and gini index (-i)j. That is my summary measures for
the group varies at the individual level and this variation is
obtained by dropping individual i. I guess I need to use either the
egen command or probably will need to create a loop. However, I am
unsure about how to proceed. Any help would be highly appreciated.
>
*
* 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/