So I'm having a weird issue with data I unfortunately can't post because it's confidential, and I can't recreate it with stata's built in data, so I'm hoping someone may be able to help here.
Basically I have survey data, and I am trying to run an ivregress and get first stage results, but they're not printing for some reason.
Here is the code and what it spits out:
To Set Survey Data:
Run a simple ivregress with no issues:
Run svy: Ivregress, but first stage doesn't appear:
So there's a suggestion that it's instrumented, and the IV results look different than the ols results (though not shown here), so I assume something is happening under the hood.
Anyone have any idea why this would happen? Is the svyset not working correctly? Is there any other way to recover the first stage estimates?
Basically I have survey data, and I am trying to run an ivregress and get first stage results, but they're not printing for some reason.
Here is the code and what it spits out:
To Set Survey Data:
Code:
svyset [pweight=vallwt0],jkrw(vallwt1 -vallwt30) vce(jackknife) mse dof(29)
Code:
ivregress 2sls farmhhi (acres = assets), first
First-stage regressions
-----------------------
Number of obs = 82,931
F(1, 82929) = 27848.60
Prob > F = 0.0000
R-squared = 0.2514
Adj R-squared = 0.2514
Root MSE = 3504.7543
------------------------------------------------------------------------------
acres | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
assets | .0002227 1.33e-06 166.88 0.000 .00022 .0002253
_cons | 423.3562 12.9597 32.67 0.000 397.9552 448.7571
------------------------------------------------------------------------------
Instrumental variables 2SLS regression Number of obs = 82,931
Wald chi2(1) = 2667.63
Prob > chi2 = 0.0000
R-squared = .
Root MSE = 1.0e+06
------------------------------------------------------------------------------
farmhhi | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
acres | 90.56129 1.753396 51.65 0.000 87.1247 93.99789
_cons | 18538.1 4106.793 4.51 0.000 10488.94 26587.27
------------------------------------------------------------------------------
Instrumented: acres
Instruments: assets
Code:
. svy: ivregress 2sls farmhhi (acres = assets), first
(running ivregress on estimation sample)
Jackknife replications (30)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
..............................
Survey: Instrumental variables 2SLS regression
Number of strata = 1 Number of obs = 82,931
Population size = 9,491,003
Replications = 30
Design df = 29
F(1, 29) = 53.61
Prob > F = 0.0000
------------------------------------------------------------------------------
| Jknife *
farmhhi | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
acres | 64.70674 8.837549 7.32 0.000 46.63193 82.78156
_cons | -454.7469 3521.358 -0.13 0.898 -7656.732 6747.238
------------------------------------------------------------------------------
Instrumented: acres
Instruments: assets
Anyone have any idea why this would happen? Is the svyset not working correctly? Is there any other way to recover the first stage estimates?

Comment