我正在使用plm
包运行具有不平衡数据集的双向面板内回归。我已经读到这个错误,但不知道如何解决这个问题:
Error in solve.default(vcov(x)[names(coefs_wo_int), names(coefs_wo_int)], :
system is computationally singular: reciprocal condition number = 4.98421e-17
我使用了5个自变量。其中3个是非常大的数字,另外2个是比率。之前,我使用了3个自变量(x2、x4和x5(的日志,它运行得很好,没有任何错误消息。这可能是由于多重共线吗?我真的应该使用对数数据集吗?
fixednormal <- plm(ROA ~ x1 + x2 + x3 + x4 + x5, data=dataset4, model="within", effect="twoways")
fixef(fixednormal, effect="time")
summary(fixednormal)
作为一种变通方法更改单元解决了问题。
尝试将log函数应用于大型解释变量