全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Gauss专版
6283 4
2006-04-17

求助用过林光平GPE2做过johansen test的GAUSS高人

我按照林光平给出的程序做,运行环境GAUSS 6.0,code如下

/*
** cointegration test
** johansen approach
*/

use gpe2;
output file = gpe\outputjo reset;

load z[1286,3] = gpe\set1cu.txt;
F = z[462:1286,2];
S = z[462:1286,3];
ns = { "F", "S" };

data = F~S; @ data matrix for cointegration test @

call reset;
_rstat = 1;
_method = 3;
_dlags = 3; @ find the proper order p @
call estimate (data,0); @ for VAR(p) model estimation @

@ johansen cointegration test based on VAR(3) model @
call johansen (data,3,2); @ model with trend drift @
call johansen (data,3,1); @ model with drift only @
call johansen (data,3,0); @ model with no drift @
end;
# include gpe\johansen.gpe ;

运算结果总是 (0):error G0008: '# include gpe\johansen.gpe': Syntax error

搞不清楚语法错误出在哪儿,请教..........................

二维码

扫码加我 拉你入群

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

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

全部回复
2006-4-18 04:30:00

Why do u place the #include line at the last line of the code-set? You'd better make clear the functionality of "#include"[But I'm not sure]

二维码

扫码加我 拉你入群

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

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

2006-4-18 04:47:00

output file = gpe\outputjo reset;

load z[1286,3] = gpe\set1cu.txt;

# include gpe\johansen.gpe ;

gpe的前面都要说明路径,如c:\gauss\gpe\,看你是怎么安gpe2的。

二维码

扫码加我 拉你入群

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

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

2006-4-18 13:46:00

to2楼高人,我看到林光平给出的例子这么做的,所以就把#include放在程序末,并且查了reference book,是这么写的“the command will cause the code to be merged into the current program at the point at which this statement appears" 貌似没什么问题,

to3楼高人,我按照你的建议把路径改了改,还是(0):error G0008。快绝望了....

谁能告诉我这是怎么回事啊...............

二维码

扫码加我 拉你入群

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

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

2006-6-3 00:04:00

这个我做过,林老师教过我们课,用5.0版不行,用7.0版的就可以了,你试试7.0版的

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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