Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Weights with -table- and -tabulate-


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Weights with -table- and -tabulate-
Date   Tue, 17 Dec 2002 13:07:23 -0800 (PST)

I have two questions on the use of weights with -table- and
-tabulate-.


(1) Can the frequencies be rounded when -tabulate- is used with
weights. My weight looks like this:

Variable |     Obs        Mean   Std. Dev.       Min        Max
---------+-----------------------------------------------------
 sweight |   28791    1.004766    .127654    .787363   1.231606

The command

tab male [aw=sweight]

yields this table:

 Male |      Freq.     Percent        Cum.
------+-----------------------------------
    0 | 14893.9698       51.73       51.73
    1 | 13897.0302       48.27      100.00
------+-----------------------------------
Total |      28791      100.00

I prefer the frequencies to be shown as 14894 and 13897. Can this be
done?


(2) Why has the weight no effect on the output of -table-?

When I type

table male [aw=sweight]

I get this table:

----------------------
     Male |      Freq.
----------+-----------
        0 |     14,862
        1 |     13,929
----------------------

This is the same as the unweighted frequency distribution.


I looked at the manuals, the FAQs, and the list archive and found no
answer to these questions. I use Stata 7.

Thank you for your help.

Friedrich Huebler

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index