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: question about Weighted Least Square(WLS)


From   Wu Zhang <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: question about Weighted Least Square(WLS)
Date   Tue, 2 Apr 2013 17:28:05 -0700 (PDT)

Hi Rich,

  That really helps. Thank you very much!
 By the way,  I could run the WLS as the GLS like this:
 gen xstar=x/sqrt(exp(v))
 gen ystar=y/sqrt(exp(v))
 reg ystar xstar

So the parameter estimates should be the same as  method 1 and 2, right? But in my case, they are different.

P.S.: 
> 1.  regress y x [aweight = 1/exp(v)]
> 
> 2. vwls y x , sd(sqrt(exp(v)))

I am very confused .

Thanks again,

Wu 


________________________________
 From: Richard Goldstein <[email protected]>
To: [email protected] 
Sent: Tuesday, April 2, 2013 4:16 PM
Subject: Re: st: question about  Weighted Least Square(WLS)
 
this is discussed, briefly, on pp. 2305-2306 of [R] vwls

Rich

On 4/2/13 4:01 PM, Wu Zhang wrote:
> 
> Hi folks,
> 
>    I run two versions of WLS:
> 
> 1.  regress y x [aweight = 1/exp(v)]
> 
> 2. vwls y x , sd(sqrt(exp(v)))
> 
> The estimates of parameters are exactly the same, while the standard errors are totally different: the ratio of the two standard errors for each estimate is a constant. Could someone explain how those result would happen?
> 
> Thanks,
> 
> Wu 
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?searchhttp://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index