全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
4086 3
2011-01-10
load Data_GDP
y = log(Data);
h = adftest(y,'model','TS','Lags',0:2)
??? Error using ==> lagmatrix at 25
lagmatrix: wrong # of input arguments
Error in ==> adftest>runReg at 688
yLags = lagmatrix(y,0:(testLags+1));
Error in ==> adftest at 416
        testReg = runReg(i,y,testT,testLags,testModel,needRegOut);
  这是否是因为加载了多元garch模型的缘故啊,看到论坛上也出现上述问题,请问怎么处理啊?多谢!!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-1-11 01:03:28
提示: 作者被禁止或删除 内容自动屏蔽
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-3-8 10:54:16
I believe there is a conflict between the matlab standard function "lagmatrix" and the "lagmatrix that comes with the spatial econometrics package. I had the same problem - it does away if you delete the spatial econometrics package from the path file. Although this is not an ideal solution...与自己安装的计量包冲突了,删除后恢复正常
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-6-7 17:08:57
因为adftest是matlab 自带的函数,lagmatrix也是在计量经济包里面,但是在做dcc-garch的时候有下载了其他的m程序放在matlab的toolbox里面。matlab 报错后,先在Command window中输入“which lagmatrix,他会回复所调用的lagmatrix函数的位置,一般bug就出在调用了新家的程序包中的函数,而非程序自带的函数,从set path 中将该路径移出就行了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群