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 at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: Weighted summary table in STATA


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Weighted summary table in STATA
Date   Tue, 8 Jun 2010 20:36:24 +0200

<>

But really Michael, I am not sure whether this is the answer to the
question. Ali seems to be quite happy with his regression, he just wants it
displayed properly. 

So the -sum- option gives him an "unweighted" summary. But Ali, from the
fact that the # of obs is reduced to 69, b/c of 5 missings in "rep78", you
can infer that the weights are indeed respected in the output:

***********
sysuse auto, clear
reg price weight length [iw=rep78]
outreg2 using myfile, replace sum
***********


HTH
Martin

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Michael N.
Mitchell
Sent: Dienstag, 8. Juni 2010 18:43
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Weighted summary table in STATA

Dear Ali

   First off, you will want to determine the "kind" of weight that you have.
You can see

http://www.stata.com/help.cgi?pweight

   which talks about the different kinds of weights.

   Say that you determine that your weights are -pweights- and your weight
variable is 
named -wt-. You can use such weights in an OLS regression like this...

. regress y x1 x2 x3 [pw=wt]

I hope this helps,

Michael N. Mitchell
Data Management Using Stata      - http://www.stata.com/bookstore/dmus.html
A Visual Guide to Stata Graphics - http://www.stata.com/bookstore/vgsg.html
Stata tidbit of the week         - http://www.MichaelNormanMitchell.com



On 2010-06-08 9.07 AM, Ali Delpisheh wrote:
> Hello,
>
> I was able to produce a summary table using OUTREG2. But they are not
> weighted. I am running weighted regressions. How can I make them
> weighted?
>
> Thank you,
> Ali
> *
> *   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/
*
*   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/

*
*   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