Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: suest issue

From   "Alexander Tsai" <>
To   <>
Subject   st: RE: suest issue
Date   Sun, 24 Apr 2005 15:57:23 -0400

I am using Stata 8.2, up to date.

When I try to reproduce this (using the exact same do file), I get an error
message on the next-to-last line:

---- begin output ----


. predict double iveps, res

. est store iv

. est change iv, scorevars(ivsc)

. suest iv
score variables for model iv no longer exist in the data

end of do-file

---- end output ----

Am I doing something wrong?

Alexander Tsai

-----Original Message-----
[] On Behalf Of Kit Baum
Sent: Sunday, April 24, 2005 11:37 AM
Cc: Mark Schaffer
Subject: st: suest issue

Dear tech support

I am using Stata/SE 8.2 848041153, up to date.

I am puzzled by what -suest- is doing when the routine generating the
estimates is -ivreg-. Even when ivreg is invoked to estimate an ols
regression (with no instruments), use of the 'pscore' option (which merely
generates OLS residuals in this case) causes the suest results to wildly
differ from those of suest after regress--standard errors off by a power of
10 or so. Please see the do-file results. Whether I generate resids with
predict or ivreg pscore I am using the same series, but suest after ivreg
seems to be doing something very different than OLS with robust standard
errors (which I believe it should be reproducing, or nearly so, in this


---cut here--
webuse auto,clear
regress mpg weight
predict double olseps, res
est store ols
suest ols
regress mpg weight,robust

ivreg2 mpg weight, psc(ivsc)
predict double iveps, res
est store iv
est change iv, scorevars(ivsc)
suest iv

su olseps iveps ivsc
--cut here--

Kit Baum, Boston College Economics

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index