Dear all,
As I read that ignoring multiway clustering in estimating a gravity model leads to misleading inference (Egger and Tarlea, 2015), I was attempting to add multi-way clustering into my estimation.
My command used is as follows:
ppmlhdfe y x1#x2, absorb(panelID prod_sector_year Inv_year) vce(cluster Inv_Country ProdCountry year). //here I wanted to impose the clustering at source country, destination country and year levels.
However, I do not understand how the number of clusters for which the standard errors were adjusted were determined (the last line in the picture).

And how should I understand extremely small residual df here? I am very confused by this number of residual df, especially in comparison to the attempt where I impose vce(cluster panelID#year). Because I think that the second clustering here is more demanding:
ppmlhdfe y x1#x2, absorb(panelID prod_sector_year Inv_year) vce(panelID#year). //here I wanted to impose the clustering at every combination of source country X destination country X year.

Is there any problem in my codes? Did I accidentally estimate something different than I wanted?
I appreciate any help and comments!
Best regards,
Lishu
As I read that ignoring multiway clustering in estimating a gravity model leads to misleading inference (Egger and Tarlea, 2015), I was attempting to add multi-way clustering into my estimation.
My command used is as follows:
ppmlhdfe y x1#x2, absorb(panelID prod_sector_year Inv_year) vce(cluster Inv_Country ProdCountry year). //here I wanted to impose the clustering at source country, destination country and year levels.
However, I do not understand how the number of clusters for which the standard errors were adjusted were determined (the last line in the picture).
And how should I understand extremely small residual df here? I am very confused by this number of residual df, especially in comparison to the attempt where I impose vce(cluster panelID#year). Because I think that the second clustering here is more demanding:
ppmlhdfe y x1#x2, absorb(panelID prod_sector_year Inv_year) vce(panelID#year). //here I wanted to impose the clustering at every combination of source country X destination country X year.
Is there any problem in my codes? Did I accidentally estimate something different than I wanted?
I appreciate any help and comments!
Best regards,
Lishu
Comment