GMM with constraints-- any clues
Posted: Fri Jul 10, 2015 9:58 am
I am having some difficulty with the following issue:
We estimated an AIDS model in STATA, and imposed cross-equation constraints-- i.e., homogeneity and symmetry. We estimated the constrained model using REG3. However, with that and other system estimation options in STATA, it's hard to produce corrected standard errors.
So we turned to E-Views and estimated the system using GMM, and specifying all exogenous variables as instruments. And correcting for serial correlation using Newey-West standard errors. When we estimated the unconstrained model, GMM in E-Views produced precisely the same parameter estimates as we obtained from running the unconstrained model in STATA.
When we imposed constraints, however, we get different numbers. Usually not radically different-- most of our elasticity estimates are only slightly different. But in one or two cases, we got larger differences: e.g., -1.44 in STATA, -1.29 in E-Views (the elasticity is a linear combination of various parameter estimates).
I'm puzzled by this. And I'm puzzled also by the fact that the J-statistic is not zero when we estimate the system imposing constraints.
I have two thoughts: (a) the GMM iteration process is thrown off by the constraints, i.e., it searches in the "wrong" region, or (b) and more seriously, the imposition of the constraints means that we need to modify our instrument list to replicate precisely the result we get with STATA.
With respect to (b), imposing the homogeneity constraint in equation 1 that C1+C2+C3+C4=0, where C1, C2, C3 and C4 are coefficients on X1, X2, X3, X4, means that C4=-C2-C3-C1, and that the model is effectively estimating y= C0+C1.(X1-X4)+C2.(X2-X4)+C3.(X3-X4), which might suggest that the instrument list should be X1-X4, X2-X4, X3-X4 instead of X1, X2, X3 and X4.
Seems a bit weird to me-- seems obvious to use all exogenous variables as instruments, but to replicate what I had in STATA with REG3/OLS option, maybe that's what I need to do?
Any thoughts? I figured I'd ask here before embarking on something that could lead to hours or days of frustration.
Kalyan
We estimated an AIDS model in STATA, and imposed cross-equation constraints-- i.e., homogeneity and symmetry. We estimated the constrained model using REG3. However, with that and other system estimation options in STATA, it's hard to produce corrected standard errors.
So we turned to E-Views and estimated the system using GMM, and specifying all exogenous variables as instruments. And correcting for serial correlation using Newey-West standard errors. When we estimated the unconstrained model, GMM in E-Views produced precisely the same parameter estimates as we obtained from running the unconstrained model in STATA.
When we imposed constraints, however, we get different numbers. Usually not radically different-- most of our elasticity estimates are only slightly different. But in one or two cases, we got larger differences: e.g., -1.44 in STATA, -1.29 in E-Views (the elasticity is a linear combination of various parameter estimates).
I'm puzzled by this. And I'm puzzled also by the fact that the J-statistic is not zero when we estimate the system imposing constraints.
I have two thoughts: (a) the GMM iteration process is thrown off by the constraints, i.e., it searches in the "wrong" region, or (b) and more seriously, the imposition of the constraints means that we need to modify our instrument list to replicate precisely the result we get with STATA.
With respect to (b), imposing the homogeneity constraint in equation 1 that C1+C2+C3+C4=0, where C1, C2, C3 and C4 are coefficients on X1, X2, X3, X4, means that C4=-C2-C3-C1, and that the model is effectively estimating y= C0+C1.(X1-X4)+C2.(X2-X4)+C3.(X3-X4), which might suggest that the instrument list should be X1-X4, X2-X4, X3-X4 instead of X1, X2, X3 and X4.
Seems a bit weird to me-- seems obvious to use all exogenous variables as instruments, but to replicate what I had in STATA with REG3/OLS option, maybe that's what I need to do?
Any thoughts? I figured I'd ask here before embarking on something that could lead to hours or days of frustration.
Kalyan