Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Using weight in summarize command


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu, <statalist@hsphsun2.harvard.edu>
Subject   Re: st: RE: Using weight in summarize command
Date   Wed, 05 Dec 2007 17:40:51 -0500

At 05:16 PM 12/5/2007, Nick Cox wrote:
. help summarize
. summarize wage [aw=weight]
You can also use the -mean- command. -mean- supports pweights, works with the svy prefix, ereturns results, and has assorted other options, which may be useful for some purposes. e.g.

. mean wage [pw=weight]

Mean estimation Number of obs = 9

--------------------------------------------------------------
| Mean Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
wage | 13315.55 3984.478 4127.332 22503.78
--------------------------------------------------------------



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW: http://www.nd.edu/~rwilliam

*
* 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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index