Hi,
I would like to compare the results of three IV regressions estimated by xtivreg2 with those of a reg3 estimation.
I first estimated the 3 estimations separately using xtivreg2.
Subsequently I estimated the model with reg3. To estimate a fixed effects model with reg3 I transformed the data using xtdata,fe.
When estimating the model using reg3 I also added the option nocons. However, regardless of whether the nocons option is incldued or not a constant term is always estimated.
Is this a bug or did I do something wrong?
The code:
xtivreg2 y1 x1 x2 (x3=z1), fe cluster(id)
xtivreg2 y2 x1 x2 (x3=z1), fe cluster(id)
xtivreg2 y3 x1 x2 (x3=z1), fe cluster(id)
xtdata y1 y2 y3 x1 x2 x3 z1, fe
bootstrap: reg3 (eq1: y1 x1 x2 x3) (eq2: y2 x1 x2 x3) (eq3: y3 x1 x2 x3), endog(x3) exog(z1) nocons
Many thanks,
Bobby
I would like to compare the results of three IV regressions estimated by xtivreg2 with those of a reg3 estimation.
I first estimated the 3 estimations separately using xtivreg2.
Subsequently I estimated the model with reg3. To estimate a fixed effects model with reg3 I transformed the data using xtdata,fe.
When estimating the model using reg3 I also added the option nocons. However, regardless of whether the nocons option is incldued or not a constant term is always estimated.
Is this a bug or did I do something wrong?
The code:
xtivreg2 y1 x1 x2 (x3=z1), fe cluster(id)
xtivreg2 y2 x1 x2 (x3=z1), fe cluster(id)
xtivreg2 y3 x1 x2 (x3=z1), fe cluster(id)
xtdata y1 y2 y3 x1 x2 x3 z1, fe
bootstrap: reg3 (eq1: y1 x1 x2 x3) (eq2: y2 x1 x2 x3) (eq3: y3 x1 x2 x3), endog(x3) exog(z1) nocons
Many thanks,
Bobby
Comment