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: weights
From
Chiara Mussida <[email protected]>
To
statalist <[email protected]>
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/