Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Variance Matrix all Zeros

    Hello! I am brand-new to stata, so please forgive a possibly badly posed question.

    I have a 2SLS regression with two-way fixed effects and clustered standard errors, written as follows:

    Code:
    xi: ivregress 2sls Drcapout (Drcapspend  = i.statenum*Drcapspend_nat) i.year i.statenum, vce(cl statenum)
    Drcapout is the change in output. Drcapspend is the change in government spending by state, instrumented by national spending. I add state and year fixed effects, and cluster by state. However, this gives a variance matrix of all zeros, which results in a "warning: variance matrix is nonsymmetric or highly singular" warning.

    Oddly, the regression works just fine without clustered standard errors. The following regression also works fine:
    Code:
    xi: ivregress 2sls Drcaprout2 (Drcapspend  = i.statenum*Drcapspend_nat) i.year i.statenum, vce(cl statenum)
    Where Drcapout2 is Drcapout deflated by a measure of local prices.

    I genuinely have no idea what the problem is, and would appreciate any pointers.


Working...
X