How to cluster standard errors of plm at different level rather than id or time?

拥有回忆 提交于 2019-12-13 05:08:18

问题


I run a panel regression by plm. plm only can cluster standard errors at "group" or "time" levels. But I want to cluster at the country level rather than group or time. (For my data, group is the firm level.)

I use the following code to cluster: summary(r, vcov = function(x) vcovHC(x, cluster = "group", method = "arellano")) But the options for cluster are only group and time. I want to cluster at country level.

来源:https://stackoverflow.com/questions/52320079/how-to-cluster-standard-errors-of-plm-at-different-level-rather-than-id-or-time

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!