简体   繁体   English

尝试运行面板数据回归时出现错误“系统在计算上是单一的”

[英]Error "system is computationally singular" when trying to run panel data regression

I'm using plm package to run a twoways within panel regression with a unbalanced data set .我正在使用plm package 在面板回归中使用不平衡数据集运行双向。 I already read about this error but didn't figure out how to solve this problem:我已经阅读了有关此错误的信息,但没有弄清楚如何解决此问题:

Error in solve.default(vcov(x)[names(coefs_wo_int), names(coefs_wo_int)],  : 
 system is computationally singular: reciprocal condition number = 4.98421e-17

I use 5 independent variables.我使用 5 个自变量。 3 of them are very large numbers, the other 2 are ratios.其中 3 个是非常大的数字,另外 2 个是比率。 Previously, I used the log of the 3 independent variables (x2, x4 and x5)and it worked perfectly without any error messages.以前,我使用了 3 个自变量(x2、x4 和 x5)的日志,它运行良好,没有任何错误消息。 Is it possible that it might be due to Multicollinearity and should I actually use the logarithm data set?是否有可能是由于多重共线性,我应该实际使用对数数据集吗?

fixednormal <- plm(ROA ~ x1 + x2 + x3 + x4 + x5, data=dataset4, model="within", effect="twoways")
fixef(fixednormal, effect="time")
summary(fixednormal)

Changing the unit as a workaround solved the problem.更改单位作为解决方法解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我运行面板回归时,它表示计算上是奇异的...但是我不认为这是 - When I run a panel regression it says it is computationally singular…but i don't think it is 系统是计算奇异误差 - system is computationally singular error 错误:系统在计算上是奇异的-&gt;使用pgmm进行系统GMM回归 - Error: System is computationally singular -> Using pgmm for System GMM regression 系统是 R 中的计算奇异错误 - System is computationally singular error in R 使用`gmm`(GMM Estimation)时“系统是计算奇异的”错误 - “system is computationally singular” error when using `gmm` (GMM Estimation) 当我使用 &#39;winsorize&#39; 时出现“系统在计算上是单一的”错误 - "system is computationally singular" error when I use 'winsorize' 关于我的数据给出错误的错误记录&#39;系统在计算上是奇异的? - R mlogit on my data giving error 'system is computationally singular? 当鼠标返回“系统在计算上是奇异的”错误时,在 R 中进行插补 - Do imputation in R when mice returns error that “system is computationally singular” R中的马哈洛诺比斯距离,误差:系统在计算上是奇异的 - Mahalonobis distance in R, error: system is computationally singular Sleuth R错误:系统在计算上是奇异的 - Sleuth R Error: System is computationally singular
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM