楼主: jiefaxc
12397 13

[学科前沿] 求助regime switching [推广有奖]

  • 0关注
  • 1粉丝

讲师

54%

还不是VIP/贵宾

-

威望
0
论坛币
3284 个
通用积分
22.4169
学术水平
2 点
热心指数
4 点
信用等级
2 点
经验
9604 点
帖子
646
精华
0
在线时间
375 小时
注册时间
2005-2-9
最后登录
2021-5-22

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
各位兄弟,在什么软件上做regime switching比较方便?BTW,哪里有GAUSS下?联数上的好象下不了。
二维码

扫码加我 拉你入群

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

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

关键词:switching regime switch Witch Ching 软件

回帖推荐

hanszhu 发表于3楼  查看完整内容

This section contains GAUSS code that computes a simple regime-switching model. GAUSS is distributed by Aptech Systems Inc, Ph. (206) 432-7855; Fax. (206) 432-7832. The code attached below requires the basic GAUSS system plus the constrained maximum likelihood (CML) module. The model is of the form: yt~ N(m1,s1) w.p. pt N(m2,s2) w.p. (1-pt) pt follows the recursive process described in Gray ( ...

macrouser 发表于9楼  查看完整内容

在国外的社会学杂志上读到过switching regression model方面的文章,是社会学研究者从计量经济学那边借用过来的一种模型。不知道楼主所谓的regime switching指的是不是就是这个东东?如果是的话,其实Stata就能够估计此模型,下面的网页提供了能估计此类模型的ado文件。http://ideas.repec.org/c/boc/bocode/s345201.html

本帖被以下文库推荐

沙发
hanszhu 发表于 2005-3-8 15:09:00 |只看作者 |坛友微信交流群
  • Question 1: I wonder whether or not there is a Stata program for the estimation of regime-switching models such as Hamilton (1990) in the Journal of Econometrics.
  • Question 2: I'm not clear as to how to interprete the output in Stata, especially the table of probabilities of belonging to the first regime.

  • Question 3: how do I determine if indeed there exists two regimes.
  • Question 4: Are there any tests I need to perform or it comes straight from the regressions.

Thank you for your help.

[此贴子已经被作者于2005-3-8 15:53:01编辑过]

已有 1 人评分经验 论坛币 收起 理由
胖胖小龟宝 + 20 + 20 热心帮助其他会员

总评分: 经验 + 20  论坛币 + 20   查看全部评分

使用道具

藤椅
hanszhu 发表于 2005-3-8 15:20:00 |只看作者 |坛友微信交流群

This section contains GAUSS code that computes a simple regime-switching model. GAUSS is distributed by Aptech Systems Inc, Ph. (206) 432-7855; Fax. (206) 432-7832. The code attached below requires the basic GAUSS system plus the constrained maximum likelihood (CML) module.

The model is of the form:

yt~ N(m1,s1) w.p. pt N(m2,s2) w.p. (1-pt)

pt follows the recursive process described in Gray (1995, 1996).

Four files are needed to illustrate the program:

  • REGIME.PRG is a GAUSS program file that estimates the regime-switching model described above.
  • REGIME.OUT is the output from REGIME.PRG.

  • REGIME.DAT is the data set used to illustrate the program. It consists of two columns, the first of which is a series of dates in yymmdd format and the second of which is a monthly series of US one-month T-Bill (short) rates. Where the short rate is denoted by rt, the data used in the regime-switching model above are changes in percentage interest rates where yt=100(rt-rt-1).

  • SMOOTH.PRC is a GAUSS procedure that converts the ex ante regime probabilities (conditional only on available information) into the smoothed probabilities (conditional on the entire data set). This filtering procedure is described in Gray (1996) "An analysis of conditional regime-switching models"

These files are all plain text files. To obtain them, click on the DOWNLOAD icon below, and follow the prompts from your web browser. Although the file is currently called REGIME.XLS, you should save it as REGIME.EXE. (Due to the idiosyncracies of the Duke server, you can't download a .EXE file). Run this file by double clicking on its icon from within the windows file manager, or by running the file from within your operating system (e.g. from within the appropriate directory in DOS just type REGIME and hit RETURN.

In addition, the program file REGIME.PRG uses some GAUSS utilities that are contained in my DATANAL utility. This is a collection of GAUSS subroutines that creates time series plots and various forms of data analysis.

使用道具

板凳
hanszhu 发表于 2005-3-8 15:24:00 |只看作者 |坛友微信交流群

DATANAL

The DATANAL utility contains GAUSS routines for plotting time series, computing a whole range of summary and specification test statistics and some miscellaneous routines that do things like convert a daily data set into a weekly data set. A number of files are included in the package:

  • README.TXT contains installation instruction and comprehensive documentation for all of the utilities.
  • GINSTALL.BAT is a DOS batch file that automatically installs the GAUSS procedures to the correct directories.

  • The DATANAL.* files contain the source code.

These files are all plain text files. To obtain them, click on the DOWNLOAD icon below, and follow the prompts from your web browser. Although the file is currently called UTILITY.XLS, you should save it as UTILITY.EXE. (Due to the idiosyncracies of the Duke server, you can't download a .EXE file). You may want to save this file in a temporary directory (c:\temp) because you can delete it after installation. Run this file by double clicking on its icon from within the windows file manager, or by running the file from within your operating system (e.g. from within the appropriate directory in DOS just type UTILITY and hit RETURN). Look at the README.TXT file for final installation instructions.

DATANAL

The DATANAL utility contains GAUSS routines for plotting time series, computing a whole range of summary and specification test statistics and some miscellaneous routines that do things like convert a daily data set into a weekly data set. A number of files are included in the package:

  • README.TXT contains installation instruction and comprehensive documentation for all of the utilities.

  • GINSTALL.BAT is a DOS batch file that automatically installs the GAUSS procedures to the correct directories.

  • The DATANAL.* files contain the source code.

These files are all plain text files. To obtain them, click on the DOWNLOAD icon below, and follow the prompts from your web browser. Although the file is currently called UTILITY.XLS, you should save it as UTILITY.EXE. (Due to the idiosyncracies of the Duke server, you can't download a .EXE file). You may want to save this file in a temporary directory (c:\temp) because you can delete it after installation. Run this file by double clicking on its icon from within the windows file manager, or by running the file from within your operating system (e.g. from within the appropriate directory in DOS just type UTILITY and hit RETURN). Look at the README.TXT file for final installation instructions.


使用道具

报纸
hanszhu 发表于 2005-3-8 15:32:00 |只看作者 |坛友微信交流群

使用道具

地板
skyjanet 发表于 2006-12-29 21:22:00 |只看作者 |坛友微信交流群
thanks

使用道具

7
tongjixue2005 发表于 2007-5-20 09:57:00 |只看作者 |坛友微信交流群
matlab 可以的 ,在网站上找到CODE

使用道具

8
liumeng0557 发表于 2008-7-9 18:33:00 |只看作者 |坛友微信交流群
matlab maple 可以

使用道具

9
macrouser 发表于 2008-7-12 00:12:00 |只看作者 |坛友微信交流群

在国外的社会学杂志上读到过switching regression model方面的文章,是社会学研究者从计量经济学那边借用过来的一种模型。不知道楼主所谓的regime switching指的是不是就是这个东东?

如果是的话,其实Stata就能够估计此模型,下面的网页提供了能估计此类模型的ado文件。

http://ideas.repec.org/c/boc/bocode/s345201.html

已有 1 人评分经验 论坛币 收起 理由
胖胖小龟宝 + 10 + 10 热心帮助其他会员

总评分: 经验 + 10  论坛币 + 10   查看全部评分

使用道具

10
macrouser 发表于 2008-7-12 00:29:00 |只看作者 |坛友微信交流群

补充一点,Stata中用来估计switching Regression Model的命令叫movestay,可以在Stata中的命令窗口中键入findit movestay进行搜索,然后点击相关链接就可以下载安装。

使用道具

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

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

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

GMT+8, 2024-4-28 14:10