I am running fixed-effect instrumental variable panel regression. The data is unbalanced panel. The cross-sectional unit is bond. I run regression in daily frequency. The variable on the left hand side is bond yield.Instead of running xtivreg, I use ivregress 2sls and manually add fixed effect terms for bonds (i.bond_id). It is because I want to use the post-estimation command "weakivtest". I cannot use "weakivtest" after xtivreg. Here is my code:
quietly ivregress 2sls y x1 i.bond_id (x3 = z), cluster (bond_id)
weakivtest
But i keep getting the following message:
invalid syntax
r(198)
Do you have any suggestion as to why this might be happening? z is instrumental variable. Thanks.
Related Posts with weakivtest invalid syntax r(198)
multilevel logistic regression: question about random slopeHello, I have models of multilevel logistic regression with random intercept and random slope. In th…
r(3261) error messageHi, I'm using the stns command on STATA and I keep getting this error code "3261 non/class structu…
How to show the ENDOG results using OUTREG2 from INSTRUMENTAL REGRESSION?Hello Stata users, Does anybody know the command in OUTREG2 to show the ENDOG command results (i.e.…
mixed effect modelsHi, I'm trying to fit data from 10 different subjects to a nonlinear mixed effect model. The model …
How to attribute a numeric value to a string variable through a loopHi all, In my Dataset I have 12241 unique values, every individual is represented by the variable c…
Subscribe to:
Post Comments (Atom)
0 Response to weakivtest invalid syntax r(198)
Post a Comment