Bookmark and Share

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]

Re: st: Weighted summary table in STATA


From   Steve Samuels <[email protected]>
To   [email protected]
Subject   Re: st: Weighted summary table in STATA
Date   Tue, 8 Jun 2010 17:11:37 -0400

Ali is wrong.  -outreg2- does indeed output  weighted coefficients.
The number of observations stays same at n =69, whether the data are
weighted or not; perhaps that is why he thinks that the results are
not weighted.

Steve


On Tue, Jun 8, 2010 at 2:36 PM, Martin Weiss <[email protected]> wrote:
>
> <>
>
> 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: [email protected]
> [mailto:[email protected]] On Behalf Of Michael N.
> Mitchell
> Sent: Dienstag, 8. Juni 2010 18:43
> To: [email protected]
> 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/
>



-- 
Steven Samuels
[email protected]
18 Cantine's Island
Saugerties NY 12477
USA
Voice: 845-246-0774
Fax:    206-202-4783

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index