我对我的数据运行了TOBIT regresion。我的数据由3个变量组成,跨越5年,总共有185个观测值。读者可以看到我的数据的前几行如下:
TTrevenue Donation1 Year
50668000 4331 2011
12351800 33500 2011
848360909 96000 2011
10153384 60800 2011
16234000 8000 2011
12232679 34980 2011
4172600 8000 2011
3588000 0 2011
11686159 11140.10819 2011
1019275000 278000 2011
513046484 50227.261 2011
10833839 21578.75559 2011
25588057 500 2011
" Donation1"的最低价值为0,并且#34; Donation1"没有最大值。因此,变量"捐赠1"被审查了。此外,变量"年"是一个因素。
我使用pdata命令将此数据集转换为pdata格式。
> class(dat.panel)
[1] "pdata.frame" "data.frame"
这是我的TOBIT回归模型。我预测捐赠使用TTrevenue超过5年(2011年至2015年)
reg1 <- censReg(Donation1 ~ TTrevenue, data = dat.panel)
运行&#34; reg1&#34;。
时遇到以下错误Error in solve.default(crossprod(ZBeta)) :
system is computationally singular: reciprocal condition number = 6.18069e-21
如果只有一个预测变量,为什么我的模型会是单数?我是否错误地设置了回归模型?
我感谢任何评论。谢谢!
更新 当我更改我的解释变量时,错误消息消失了,但我有以下输出。
Call:
censReg(formula = Donation1 ~ log(ROE), data = dat.panel)
Observations:
Total Left-censored Uncensored Right-censored
185 1 184 0
Coefficients:
Estimate Std. error t value Pr(> t)
(Intercept) 63464.71 Inf 0 1
log(ROE) -5785.16 Inf 0 1
logSigmaMu -Inf Inf NA NA
logSigmaNu 11.47 Inf 0 1
Newton-Raphson maximisation, 8 iterations
Return code 2: successive function values within tolerance limit
Log-likelihood: -2372.245 on 4 Df
只有1个观察被左删除。这是我的模型不适合的原因之一吗?