Dear Statalist community,
I am currently running a SLS model (fixed effects panel data) via xtivreg, after which I would like to conduct the Durbin Wu Hausman (DWH) test. However, ivendog does not work after xtivreg; it only works after ivreg. Thus, I have used the user-written dmexogxt command; yet this command computes the Davidson-MacKinnon test of exogeneity, not the Durbin Wu Hausman (DWH) test.
Thus, I was wondering whether there is any way of performing the Durbin Wu Hausman (DWH) test after xtivreg, fe?
This is the code I use:
Where DV = dependent variable, IV = independent variable, Z = instrument
Any advice on the above question would be immensely appreciated.
All the best wishes,
Franz
I am currently running a SLS model (fixed effects panel data) via xtivreg, after which I would like to conduct the Durbin Wu Hausman (DWH) test. However, ivendog does not work after xtivreg; it only works after ivreg. Thus, I have used the user-written dmexogxt command; yet this command computes the Davidson-MacKinnon test of exogeneity, not the Durbin Wu Hausman (DWH) test.
Thus, I was wondering whether there is any way of performing the Durbin Wu Hausman (DWH) test after xtivreg, fe?
This is the code I use:
Code:
xtivreg DV control1 control2 control3 (IV = Z), fe vce(cluster FirmID)
Any advice on the above question would be immensely appreciated.
All the best wishes,
Franz
Comment