一、描述

创建单变量GARCH

二、用法

ugarchspec(variance.model = list(model = "sGARCH", garchOrder = c(1, 1),
submodel = NULL, external.regressors = NULL, variance.targeting = FALSE),
mean.model = list(armaOrder = c(1, 1), include.mean = TRUE, archm = FALSE,
archpow = 1, arfima = FALSE, external.regressors = NULL, archex = FALSE),
distribution.model = "norm", start.pars = list(), fixed.pars = list(), ...)

三、参数

1、variance.model

List containing the variance model specification:

model Valid models (currently implemented) are “sGARCH”, “fGARCH”, “eGARCH”, “gjrGARCH”, “apARCH” and “iGARCH” and “csGARCH”.

garchOrder The ARCH (q) and GARCH (p) orders.

submodel If the model is “fGARCH”, valid submodels are “GARCH”, “TGARCH”, “AVGARCH”, “NGARCH”, “NAGARCH”, “APARCH”,“GJRGARCH” and “ALLGARCH”.

external.regressors A matrix object containing the external regressors to include in the variance equation with as many rows as will be included in the data (which is passed in the fit function).

variance.targeting (Logical or Numeric) If logical, indicates whether to use variance targeting for the conditional variance intercept “omega”, else if numeric, the value provided is used instead of the unconditional variance for the calculation of the intercept (in combination with the persistence value). Care should be taken if using the numeric option for apARCH and fGARCH models since the intercept is not the variance but sigma raised to the power of some positive value. Finally, if scaling is used (from the fit.control option in ugarchfit), the value provided is adjusted accordingly by the routine.

2、mean.model

List containing the mean model specification:

armaOrder The autoregressive (ar) and moving average (ma) orders (if any).

自回归系数和移动平均项。

include.mean Whether to include the mean.

archm Whether to include ARCH volatility in the mean regression.

archpow Indicates whether to use st.deviation (1) or variance (2) in the ARCH in mean regression.

arfima Whether to fractional differencing in the ARMA regression.

external.regressors A matrix object containing the external regressors to include in the mean equation with as many rows as will be included in the data (which is passed in the fit function).

archex (integer) Whether to multiply the last 'archex' external regressors by the conditional standard deviation.

3、distribution.model模型分布

The conditional density to use for the innovations. Valid choices are “norm” for the normal distibution, “snorm” for the skew-normal distribution, “std” for the student-t, “sstd” for the skew-student, “ged” for the generalized error distribution, “sged” for the skew-generalized error distribution, “nig” for the normal inverse gaussian distribution, “ghyp” for the Generalized Hyperbolic, and “jsu” for Johnson's SU distribution. Note that some of the distributions are taken from the fBasics package and implenented locally here for convenience. The “jsu” distribution is the reparametrized version from the “gamlss” package.

4、start.pars

List of staring parameters for the optimization routine. These are not usually required unless the optimization has problems converging.

5、fixed.pars

List of parameters which are to be kept fixed during the optimization. It is possible that you designate all parameters as fixed so as to quickly recover just the results of some previous work or published work. The optional argument “fixed.se” in the ugarchfit function indicates whether to calculate standard errors for those parameters fixed during the post optimization stage.

四、输出

A '>uGARCHspec object containing details of the GARCH specification.

输入>uGARCHspec即可查看模型参数。

五、细节

The specification allows for a wide choice in univariate GARCH models, distributions, and mean equation modelling.

大量的可选项

For the “fGARCH” model, this represents Hentschel's omnibus model which subsumes many others. For the mean equation, ARFIMAX is fully supported in fitting, forecasting and simulation. There is also an option to multiply the external regressors by the conditional standard deviation, which may be of use for example in calculating the correlation coefficient in a CAPM type setting. The “iGARCH” implements the integrated GARCH model. For the “EWMA” model just set “omega” to zero in the fixed parameters list. The asymmetry term in the rugarch package, for all implemented models, follows the order of the arch parameter alpha. Variance targeting, referred to in Engle and Mezrich (1996), replaces the intercept “omega” in the variance equation by 1 minus the persistence multiplied by the unconditional variance which is calculated by its sample counterpart in the squared residuals during estimation. In the presence of external regressors in the variance equation, the sample average of the external regresssors is multiplied by their coefficient and subtracted from the variance target. In order to understand which parameters can be entered in the start.pars and fixed.pars optional arguments, the list below exposes the names used for the parameters across the various models:(note that when a parameter is followed by a number, this represents the order of the model. Just increment the number for higher orders, with the exception of the component sGARCH permanent component parameters which are fixed to have a lag-1 autoregressive structure.):、

1、Mean Model

  • constant: mu

  • AR term: ar1

  • MA term: ma1

  • ARCH-in-mean: archm

  • exogenous regressors: mxreg1

  • arfima: arfima

ugarchspec-methods function - RDocumentation

RPubs - Value at Risk estimation using GARCH model

【代码实践】R语言,ugarchspec函数(待完善)相关推荐

  1. R语言 自定义函数之趣味程序--老虎机

    ****R语言 自定义函数之趣味程序--老虎机**** 自定义函数 自定义规则 自定义格式 案例:老虎机 老虎机符号准备 老虎机结果分类 老虎机得分计算 开始老虎机试玩 获奖感言 自定义函数 R语言作 ...

  2. R语言missing()函数用法及举例

    R语言missing()函数用法及举例 函数作用就是如果y没有具体的值,那么输出为真,如果y有具体的值,那么输出为假,这么说可能有点抽象,举个例子: 对于这样一段代码 myplot <- fun ...

  3. c r语言中rank函数,R语言rank函数详细解析

    R语言rank函数详细解析 发布于 2016-01-04 16:26:04 | 557 次阅读 | 评论: 0 | 来源: PHPERZ R 数据统计分析语言R是用于统计分析.绘图的语言和操作环境.R ...

  4. R语言which函数详解以及Rcpp改写

    R语言which函数详解以及Rcpp的改写 引言 which 函数的介绍 which函数的一些小例子 1 2 which函数的改进以及时间对比 引言 首先来介绍一下R语言which函数的作用:whic ...

  5. R语言与函数估计学习笔记(函数模型的参数估计)

    R语言与函数估计学习笔记 毫无疑问,函数估计是一个比参数估计要复杂得多的问题,当然也是一个有趣的多的问题.这个问题在模型未知的实验设计的建模中十分的常见,也是我正在学习的内容的一部分. 关于函数估计我 ...

  6. R语言str_trim函数去除字符串中头部和尾部的空格

    R语言str_trim函数去除字符串中头部和尾部的空格 目录 R语言str_trim函数去除字符串中头部和尾部的空格 #导入包和库 #仿

  7. R语言sqrt函数为数值开平方根实战

    R语言sqrt函数为数值开平方根实战 目录 R语言sqrt函数为数值开平方根实战 #基本语法 #sqrt函数开平方根

  8. R语言数学函数:abs绝对值、sqrt平方根、ceiling向上近似整数、floor向下近似整数、trunc去除小数部分、round近似到指定小数位、signif近似到有效数字、三角函数、指数、对数

    R语言数学函数:abs绝对值.sqrt平方根.ceiling向上近似整数.floor向下近似整数.trunc去除小数部分.round近似到指定小数位.signif近似到有效数字.三角函数.指数.对数 ...

  9. R语言sd函数计算数值标准差实战(Standard Deviation)

    R语言sd函数计算数值标准差实战(Standard Deviation) 目录 R语言sd函数计算数值标准差实战(Standard Deviation) #基本语法 #sd

  10. R语言optimize函数一维优化实战

    R语言optimize函数一维优化实战 目录 R语言optimize函数一维优化实战 #基础语法 #优化用户自定义的函数

最新文章

  1. 获取SpringBean对象工具类
  2. 测验7: 文件和数据格式化 (第7周)
  3. SpringBoot接口幂等性实现的4种方案!
  4. 解读阿里云oss-android/ios-sdk 断点续传(多线程)
  5. java二维码生成技术
  6. 5天学习MYSQL数据库第一天剩余全部笔记(超级详细的mysql入门笔记适合新手反复看加深记忆)
  7. 表达式如何获取复选框的值_Nuke表达式 Expression节点讲解
  8. 详解:设计模式之-代理设计
  9. Python_今天是今年第几天
  10. SpringBoot学习总结(个人笔记)
  11. reboot 重启系统命令
  12. Javaweb的初级(Servlet接口)
  13. python 进化树_Python ete3有没有一种方法来扩展系统进化树的分支?
  14. Mac新手需要知道的显示桌面的快捷方式
  15. 2022IC秋招面经分享【海光·SOC设计工程师(上海)/紫光展锐(杭州)】
  16. MIXLY二次开发(傻瓜版)
  17. 基于51单片机的六足仿生机器人
  18. linux mongodb集群搭建
  19. dig 命令 LINUX
  20. Java识别PDF文字内容的方法

热门文章

  1. 基于cw32f030c8t6的多功能语音播报提醒装置装置
  2. python自学训练营 免费_李笑来《Python入门自学训练营》课程全集下载链接 | 挖宝否...
  3. Android-0.AMS初始化和启动简介
  4. Introduction to Probability
  5. C语言“递归法”输入一个非负整数,求出组成这个非负整数的数字之和
  6. 【漏洞类型】OOB wirte的解释
  7. “华为”和“荣耀”的关系区分,荣耀新品发布会太燃了
  8. python爬虫系列(2)—— requests和BeautifulSoup库的基本用法
  9. 鸿蒙系统成备胎,鸿蒙真成备胎了? 华为新机考虑用俄罗斯系统? 网友: 干得漂亮!...
  10. CF1717A Madoka and Strange Thoughts 题解