Hello all,
I am trying to estimate the following equation where the variable S is instrumented by Z :
Log(y) on t t*S and a constant, where S is a binary variable potentially endogenous and that is why it is instrumented by Z.
To proceed, I would like to run a 2SLS by estimating first S_hat through a first stage : S on Z
And then replace S by S_hat, thus running this 2nd stage regression :
Log(y) on t t*S_hat and a constant.
To do so, I am trying to use the "ivregress 2sls" command :
ivregress 2sls y t c.t#(c.S=c.E), vce(robust)
Yet, I am getting the following error "parentheses unbalanced r(132);".
I looked at the documentation but could not manage to fix the problem.
Anyone can help ?
Thanks in advance !
Matthieu
I am trying to estimate the following equation where the variable S is instrumented by Z :
Log(y) on t t*S and a constant, where S is a binary variable potentially endogenous and that is why it is instrumented by Z.
To proceed, I would like to run a 2SLS by estimating first S_hat through a first stage : S on Z
And then replace S by S_hat, thus running this 2nd stage regression :
Log(y) on t t*S_hat and a constant.
To do so, I am trying to use the "ivregress 2sls" command :
ivregress 2sls y t c.t#(c.S=c.E), vce(robust)
Yet, I am getting the following error "parentheses unbalanced r(132);".
I looked at the documentation but could not manage to fix the problem.
Anyone can help ?
Thanks in advance !
Matthieu
Comment