全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Gauss专版
7271 22
2011-07-24
悬赏 50 个论坛币 已解决
最近在尝试运行Hamilton的双变量SWARCH的GAUSS程序,但是在GAUSS9.0下,出现ERROR G0008和 ERROR G00025等路径错误和变量未定义错误,修改路径后继续出现【“: . ”】必须在括号内等错误,以及变量未定义错误。请问各位大侠,如何才能够运行,又如何把数据替代为自己的数据。请帮忙运行和调试一下,谢谢!程序如附件所示。主程序为MAXSEEK。

lin.zip

大小:50.66 KB

 马上下载

本附件包括:

  • Rvar.fcs
  • 2s.out
  • 2s.pro
  • 2s.smo
  • 2s.var
  • Citi.dat
  • Ergodic
  • Grt.fcs
  • Maxseek.2s
  • Osmfor.out
  • Procs.ext
  • Readme.txt
  • 2s.fil

最佳答案

xuehe 查看完整内容

注意代码什么时候写的,用当时的版本。修改起来也是比较麻烦的,参照在gauss里面的lib里面修改,比较麻烦。
二维码

扫码加我 拉你入群

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

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

全部回复
2011-7-24 11:11:31
注意代码什么时候写的,用当时的版本。修改起来也是比较麻烦的,参照在gauss里面的lib里面修改,比较麻烦。
二维码

扫码加我 拉你入群

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

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

2011-7-24 11:34:36
相关文章如附件:
附件列表

双变量SWARCH.rar

大小:319.6 KB

 马上下载

本附件包括:

  • 双变量SWARCH.pdf

二维码

扫码加我 拉你入群

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

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

2011-7-24 12:17:00
在使用GAUSS 5.0运行出现:error G0008 : '#include procs' : Syntax error
error G0008 : '#include optmum.ext' : Syntax error
二维码

扫码加我 拉你入群

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

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

2011-7-24 20:45:34
还请版主及各位高手指点一下。
二维码

扫码加我 拉你入群

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

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

2011-7-25 16:47:33
gauss5.0可以的// Welcome to GAUSS 5.0

You've just run the GAUSS startup file.  It's called "startup" in your
GAUSS home directory.  You may modify it to contain your own custom
commands or simply delete it.

To run an example program, enter the following at the command prompt:

run ols.e

?run D:\gausscd\lin\Maxseek.2s;
Order of autoregression for production index       1.0000000
Order of autoregression for stock return       1.0000000
Order of ARCH process      0.00000000
Number of primitive states       2.0000000
Number of lagged states that affect returns and growth rates       1.0000000
Number of state delays between returns and growth rates       1.0000000
First observation used for estimation is       5.0000000
with leverage effect
Distribution is Normal
==================================================
The matrix hpp is

1. 0.0  1. 0.0  1. 0.0  1. 0.0
0.0  1. 0.0  1. 0.0  1. 0.0  1.
1.  1. 0.0 0.0  1.  1. 0.0 0.0
0.0 0.0  1.  1. 0.0 0.0  1.  1.
1.  1.  1.  1. 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0  1.  1.  1.  1.
----------------- 2 STATE MODEL ----------------
================================================
--------- Parameters in the stock return and its volatility eqautions----------

Constant term in stock return regression      0.35000000
Autoregressive coefficients in stoch return regression      0.27145200
Initial variance not neeeded
Constant term in ARCH process       19.663118
(Transposed) matrix of transition probabilities
      0.88730800      0.020626000
      0.11269200       0.97937400

The state with no adjustment to ARCH process is state 1, with transition
probability       0.88730800
Vector of variance factors for states 2 through       2.0000000      0.088103000
Coefficient on negative lagged change for asymmetric effect      0.15921200  
----------- Parameters in the production growth rate eqaution -----------

The mean of  growth rate in state 1 through       2.0000000      -0.76164300       0.41672000
Autocoefficients on the production growth rate equation
      0.23808100
Variance for the growth rate      0.48369000

Initial values:      0.35000000       0.27145200        13.108745       0.88730800       0.97937400      0.088103000      -0.15921200      -0.76164300       0.41672000       0.23808100       0.48369000
Initial value for negative log likelihood:       1259.9470

Do you wish to continue (y or n)?
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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