Hi,
I have been trying to obtain weighted counts for gender and race using ATUS-X data (I use a pooled file 2003-2016, but in the output below I only show 2010 data so that I could compare the weighted counts to actual counts in population in 2010). I used the “svyset” command and then using “svy: tabulate gender, count” to get the weighted counts. But it doesn’t seem to give weighted counts in the total population (the output shows that population size is “88,298,420,349”, which seems way too higher than actual population size 309 million in 2010). Could you guide me how to obtain the weighted counts to the population level? Thanks!
Please see the command and output below:
svyset [pw=wt06], sdrweight(rwt06_1 - rwt06_160) vce(sdr)
svy: tab sex, count
. svy: tab sex, count
(running tabulate on estimation sample)
Number of obs = 13,260
Population size = 88,298,420,349
Replications = 160
Sex | count
----------±----------
Male | 4.3e+10
Female | 4.6e+10
|
Total | 8.8e+10
Key: count = weighted count