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

st: cluster option of ivreg2

From   Giovanni Pica <[email protected]>
To   [email protected]
Subject   st: cluster option of ivreg2
Date   Fri, 6 May 2005 10:09:25 +0100

Dear Stata Users,

I have a problem with the cluster option of ivreg2.

I am running the following regression:

ivreg2 logw X P (T T*P = Z That*P), cluster(personid)

this is using IV in a difference in difference regression where T is the
treatment group, P is post-reform dummy and T*P is the interaction term of
The use of That*P as an instrument, where That is obtained from a fist stage
regression of T on the exogenous regressors (X and P) and the instruments Z,
has been already suggested in Stata list in another context (Mark Shaffer in
reply to Steve Morris):

The cluster(personid) is required because it's a panel of individual wages.

All this works when I use the ivreg command, when I use the ivreg2 command
it says "matrix not symmetric".

Is there something wrong with the use of IV in the diff-in-diff framework or
the difference between ivreg and ivreg2 is due to the the way the commands
handles the cluster option?


*   For searches and help try:

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