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)
using foreeach loop for doing repeating worki want to save observations in different files on the basis of values of variable order. i have lots…
How to create a variable for the nth observation using datesHello! I have a long dataset with dates corresponding to visits (variable name "date"). Each person…
Returns of different companiesHello, I am new in Stata. I have stock price data of many companies. I would like to get the return…
Changing marker symbols for each level of an interaction using marginsplotHi everyone, I am using Stata 14.2 and the default scheme (s2color) to plot the conditional margina…
confirm numeric format returns error code 111I'm wanting to use confirm numeric format to check that a user-entered format is valid, but when the…
Subscribe to:
Post Comments (Atom)
0 Response to weakivtest invalid syntax r(198)
Post a Comment