固定效果模型“之间”的异方差控制-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 (将#修改为@)