WLS with robusterror
Posted: Wed Nov 25, 2015 10:10 am
Could you tell me the difference of standard errors of the following two estimator?
linreg(weight=num,robusterror) y /
# constant x
set ww = (1/num)
linreg(spread=ww,robusterror) y /
# constant x
I checked that the standard error from the first code was calculated by using (1) residuals = y – beta(WLS)*x and (2) weighted variables (py, px). However, it seems to be a wrong estimator as suggested in Rats User Guide 810, pp UG-44. How does Rats compute the second, correct standard errors? I am happy if you could explain in line with the equation (15) on page 44 in the Guide.
Sincerely,
linreg(weight=num,robusterror) y /
# constant x
set ww = (1/num)
linreg(spread=ww,robusterror) y /
# constant x
I checked that the standard error from the first code was calculated by using (1) residuals = y – beta(WLS)*x and (2) weighted variables (py, px). However, it seems to be a wrong estimator as suggested in Rats User Guide 810, pp UG-44. How does Rats compute the second, correct standard errors? I am happy if you could explain in line with the equation (15) on page 44 in the Guide.
Sincerely,