matlab矩阵倒数,求解:用MATLAB生成空间距离倒数矩阵后面板分析出现下面的几句警告...

在使用MATLAB进行空间距离倒数矩阵计算时遇到警告:'Matrix is close to singular or badly scaled.',这可能影响结果的准确性。文章通过展示一个面板数据分析的实例,涉及ols、LM测试等方法,详细记录了出现警告的步骤,并提供了数据集和权重矩阵。警告可能源于矩阵接近奇异或尺度问题,作者寻求解决方案以提高分析的精确度。
摘要由CSDN通过智能技术生成

请问大神们如何解决呢?Warning: Matrix is close to singular or badly scaled.

Results may be inaccurate. RCOND = 5.736767e-019.

> In ols at 51

In demoLMsarsem_panel at 30

Ordinary Least-squares Estimates

Dependent Variable =    LFDI

R-squared      = -251.3651

Rbar-squared   = -260.5117

sigma^2        =  922.5813

Durbin-Watson  =    0.2789

Nobs, Nvars    =    630,    23

Warning: Matrix is close to singular or badly scaled.         Results may be inaccurate. RCOND = 1.450489e-018. > In LMsarsem_panel at 37  In demoLMsarsem_panel at 38LM test no spatial lag, probability          =   47.3846,    0.000 robust LM test no spatial lag, probability   = 2010.5871,    0.000 LM test no spatial error, probability        =  736.5092,    0.000 robust LM test no spatial error, probability = 2699.7117,    0.000 Warning: Matrix is close to singular or badly scaled.         Results may be inaccurate. RCOND = 1.450489e-018. > In lmlag_panel at 50  In demoLMsarsem_panel at 43LM lag test for omitted spatial lag in panel data

附带程序A=wk1read('cigardemo.wk1',1,0); % data set with T=30W1=wk1read('spat-sym-us1.wk1');% Dataset downloaded from www.wiley.co.uk/baltagi/% Spatial weights matrix constructed by Elhorst%% written by: J.Paul Elhorst summer 2010% University of Groningen% Department of Economics% 9700AV Groningen% the Netherlands% j.p.elhorst@rug.nl%% REFERENCES: % Elhorst JP (2010) Matlab Software for Spatial Panels. Under review.%% Elhorst JP (2010) Spatial Panel Data Models. In Fischer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值