楼主: virginia0984
4922 4

求助用过林光平GPE2做过johansen test的GAUSS高人 [推广有奖]

  • 0关注
  • 0粉丝

小学生

28%

还不是VIP/贵宾

-

威望
0
论坛币
161 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
87 点
帖子
8
精华
0
在线时间
3 小时
注册时间
2006-4-17
最后登录
2018-8-9

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

求助用过林光平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

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

二维码

扫码加我 拉你入群

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

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

关键词:Johansen Hansen johans GAUSS test test GAUSS 高人 Johansen 林光平

沙发
zhaosweden 发表于 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]

使用道具

藤椅
hkswen 发表于 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的。

使用道具

板凳
virginia0984 发表于 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版的

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-26 19:54