Dear all,
I'm using the ivreghdfe command to run a two-way cluster analysis with driscoll kraay error for panel dyadic data, and got the following error message -
ivreghdfe y x (z=z_IV1 z_iV2), absorb(Year fID sID) cluster (fID sID) dkraay(4)
invalid use of dkraay option - must cluster on Year (or omit cluster option)
r(198);
Could anyone help to let me know if cluster has to be done on the Year dimension? Is it possible to do a two-way cluster (not cluster on Year dimension) with the dkraay(#) option?
Thanks in advance for anyone's insights!
I'm using the ivreghdfe command to run a two-way cluster analysis with driscoll kraay error for panel dyadic data, and got the following error message -
ivreghdfe y x (z=z_IV1 z_iV2), absorb(Year fID sID) cluster (fID sID) dkraay(4)
invalid use of dkraay option - must cluster on Year (or omit cluster option)
r(198);
Could anyone help to let me know if cluster has to be done on the Year dimension? Is it possible to do a two-way cluster (not cluster on Year dimension) with the dkraay(#) option?
Thanks in advance for anyone's insights!
Comment