Dear all,
I am trying to estimate the following model: Y = a_0 + a_1 X + a_2 C + a_3 (X*C) + e, where X is a continuous endogenous variable and C is a age cohort dummy variable. I have an instrument for X, denoted by Z. Elsewhere, it has been noted that Z*C is a valid instrument for X*C. I want to cluster the standard errors at a region level.
I am using the "ivreg2" command in Stata to estimate the model, but it warns that the standard errors are not correct.
I did the first stage regressions manually by running the following regressions:
reg X Z (Z*C) C, cluster(region)------(I)
reg (X*C) Z (Z*C) C, cluster(region) ----------(II)
The problem seems to be that regression (II) produces a negative variance covariance matrix. In particular, the diagonal term in the variance covariance matrix corresponding to variable Z is negative and close to zero (the value is -2.976e-18). Standard errors for Z*C and C is is valid. Without the cluster option, both coefficient estimates and standard error for Z is positive and close to zero. My own take is that clustering is pushing the standard errors slightly towards negative, which is leading to the problem with the ivreg2 command.
Any suggestion on how I can address this issue? Thank you in advance for your help!
Rashesh
Additional information:
1. ivreg2 command that I run: ivreg2 (X X*C = Z Z*C) C, cluster(region)
2. The instrument Z is measured at the region level.
I am trying to estimate the following model: Y = a_0 + a_1 X + a_2 C + a_3 (X*C) + e, where X is a continuous endogenous variable and C is a age cohort dummy variable. I have an instrument for X, denoted by Z. Elsewhere, it has been noted that Z*C is a valid instrument for X*C. I want to cluster the standard errors at a region level.
I am using the "ivreg2" command in Stata to estimate the model, but it warns that the standard errors are not correct.
I did the first stage regressions manually by running the following regressions:
reg X Z (Z*C) C, cluster(region)------(I)
reg (X*C) Z (Z*C) C, cluster(region) ----------(II)
The problem seems to be that regression (II) produces a negative variance covariance matrix. In particular, the diagonal term in the variance covariance matrix corresponding to variable Z is negative and close to zero (the value is -2.976e-18). Standard errors for Z*C and C is is valid. Without the cluster option, both coefficient estimates and standard error for Z is positive and close to zero. My own take is that clustering is pushing the standard errors slightly towards negative, which is leading to the problem with the ivreg2 command.
Any suggestion on how I can address this issue? Thank you in advance for your help!
Rashesh
Additional information:
1. ivreg2 command that I run: ivreg2 (X X*C = Z Z*C) C, cluster(region)
2. The instrument Z is measured at the region level.
Comment