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]

RE: 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   RE: st: Computing summary statistics for peer groups of each individual leaving out the individual herself
Date   Tue, 11 Mar 2014 14:41:25 +0000

Thank you very much for your help!

Best,
Punarjit
________________________________________
From: [email protected] [[email protected]] on behalf of Nick Cox [[email protected]]
Sent: Tuesday, March 11, 2014 4:44 AM
To: [email protected]
Subject: Re: st: Computing summary statistics for peer groups of each individual leaving out the individual herself

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/

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