如何解决固定效果模型“之间”的异方差控制-PLM软件包R
我正在使用R中的plm软件包运行“介于两者之间”类型的固定效果模型。根据Breusch Pagan测试,存在异方差。但是,vcovHC函数似乎不适用于模型之间。
这是我的代码:
plm.be.labourha <- plm(labour_ha ~ share_steep_c + share_steep_c_sq + share_rope + share_manual + acreage_total_c + acreage_total_c_sq,data = profit.csv,model = "between")
bptest(plm.be.labourha,studentize = F)
coeftest(plm.be.labourha,vcov = vcovHC(plm.be.labourha,method = "arellano"))
--> Error in vcovG.plm(x,type = type,cluster = cluster,l = 0,inner = inner,:
Model has to be either random,within,pooling or fd model
如果我将模型估计为“内部”类型,则该过程有效。但是,“内部”转换不是回答我问题的正确方法。
有人知道如何使用模型类型和控件之间的异方差性吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。