楼主: taokecn
3743 12

[有偿编程] 求MS-GARCH模型的修改,500币。 [推广有奖]

  • 0关注
  • 2粉丝

已卖:48份资源

本科生

84%

还不是VIP/贵宾

-

威望
0
论坛币
8506 个
通用积分
3.9940
学术水平
1 点
热心指数
0 点
信用等级
0 点
经验
793 点
帖子
36
精华
0
在线时间
180 小时
注册时间
2008-4-6
最后登录
2025-9-27

楼主
taokecn 发表于 2018-11-14 17:03:19 |AI写论文
500论坛币
最近网络上公布了MS-GARCH程序包,但该编程是针对方差方程的,默认均值方程中的因变量为均值为0的方程。
但如果均值方程的均值不为0,那么要对均值方程和方差方程同时进行估计,该如何估计呢?谢谢!

沙发
yahoocom 发表于 2018-11-14 17:34:21
单变量还是多变量?

藤椅
taokecn 发表于 2018-11-14 19:11:49
单变量。网络上有MS-EGARCH的程序包,也有代码,但不会修改。

板凳
taokecn 发表于 2018-11-14 19:12:22
比如上证的日收益率。

报纸
jianyu1118 在职认证  发表于 2018-11-15 01:18:11
Usage:
CreateSpec(variance.spec = list(model = c("sGARCH", "sGARCH")), distribution.spec = list(distribution = c("norm", "norm")), switch.spec = list(do.mix = FALSE, K = NULL), constraint.spec = list(fixed = list(), regime.const = NULL), prior = list(mean = list(), sd = list()))

# setting custom parameter priors for the beta parameters # MS-GARCH(1,1)-GJR(1,1)-Student with prior modification spec <- CreateSpec(variance.spec = list(model = c("sGARCH","gjrGARCH")), distribution.spec = list(distribution = c("std","std")), switch.spec = list(do.mix = FALSE), prior = list(mean = list(beta_1 = 0.9, beta_2 = 0.3), sd = list(beta_1 = 0.05, beta_2 = 0.01)))
已有 1 人评分论坛币 收起 理由
admin_kefu + 20 热心帮助其他会员

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

地板
taokecn 发表于 2018-11-15 08:56:01
这个程序只估计了方差,没有和均值一起估计。

7
jianyu1118 在职认证  发表于 2018-11-15 10:58:06
作者说仅有估计”方差“,无提供“均值”的估计,可能需搭配其他package。

##########文件说明##########

The R package MSGARCH
Description

The R package MSGARCH implements a comprehensive set of functionalities for Markov-switching GARCH (Haas et al. 2004a) and Mixture of GARCH (Haas et al. 2004b) models, This includes fitting, filtering, forecasting, and simulating. Other functions related to Value-at-Risk and Expected-Shortfall are also available.
The main functions of the package are coded in C++ using Rcpp (Eddelbuettel and Francois, 2011) and RcppArmadillo (Eddelbuettel and Sanderson, 2014).
MSGARCH focuses on the conditional variance (and higher moments) process. Hence, there is no equation for the mean. Therefore, you must pre-filter via AR(1) before applying the model.
The MSGARCH package implements a variety of GARCH specifications together with several conditional distributions. This allows for a rich modeling environment for Markov-switching GARCH models. Each single-regime process is a one-lag process (e.g., GARCH(1,1)). When optimization is performed, we ensure that the variance in each regime is covariance-stationary and strictly positive (refer to the vignette for more information).
We refer to Ardia et al. (2017) https://ssrn.com/abstract=2845809 for a detailed introduction to the package and its usage.
The authors acknowledge Google for financial support via the Google Summer of Code 2016 & 2017, the International Institute of Forecasters and Industrielle-Alliance.
##########文件说明##########
已有 1 人评分论坛币 收起 理由
admin_kefu + 30 热心帮助其他会员

总评分: 论坛币 + 30   查看全部评分

8
taokecn 发表于 2018-11-15 13:49:55
看来R软件还是不能做。

9
Bonnie菇凉 发表于 2018-11-21 15:47:30 来自手机
taokecn 发表于 2018-11-14 17:03
最近网络上公布了MS-GARCH程序包,但该编程是针对方差方程的,默认均值方程中的因变量为均值为0的方程。
但 ...
楼主这个问题解决了吗?我最近也在做这个模型。遇到了相似问题

10
taokecn 发表于 2018-12-6 10:02:35
没有解决

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-25 14:16