Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: weights


From   Chiara Mussida <cmussida@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: weights
Date   Wed, 27 Oct 2010 10:58:10 +0200

Dear all,
I have to generate a variable for the sum of household disposable
income and I must use the available weights to get the real sum.
Anyway the commands gen and egen (for a sake of clarity I used egen
newvar=sum(income)) do not allow the use of weights. Therefore what I
get is a sum of all sampled household income and not the real overall,
since to get the average income I have to divide by the number of
household in my sample and not - as desired - by the number of
"represented" household (ibtained by my weights).

Thanks a lot
Chiara

-- 
Chiara Mussida
PhD Doctoral school of Economic Policy
Catholic University, Piacenza (Italy)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index