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: Computing summary statistics for peer groups of each individual leaving out the individual herself


From   "Roychowdhury, Punarjit" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Computing summary statistics for peer groups of each individual leaving out the individual herself
Date   Tue, 11 Mar 2014 02:40:39 +0000

Hi All,

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.

Thanks,
Punarjit





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