Dear Statalisters,
I am running an instrumental variable model using the following codes. I am trying to check the exogeneity of the instrument, whether it is a strong or a weak one.
However, the
did not work and it gave me the below error:
cage#c: operator invalid
r(198);
I have also tried the below code and it gave me an error term that endog is not allowed.
Could you please advise me on this?
Best regards,
Maye
I am running an instrumental variable model using the following codes. I am trying to check the exogeneity of the instrument, whether it is a strong or a weak one.
Code:
global X2 "c.age##c.age i.educ4 i.marital3 hhsize urban public" xtivreg Y $X1 (endvar= $IV), re vce(robust) first xtoverid
Code:
xtoverid
cage#c: operator invalid
r(198);
I have also tried the below code and it gave me an error term that endog is not allowed.
Code:
xtivreg Y $X1 (endvar= $IV), fe first endog(endvar)
Best regards,
Maye
Comment