Skip to content
All library documents

Markov-Switching EGARCH Modeling and Estimation in R

Article Quant Q&A · Author: tagoma

Summary

The document asks for an R library that can model Markov-switching EGARCH volatility, with controls for the volatility term structure, long-term volatility, calibration, and forecasting. The answer recommends the MSGARCH package and points to its vignette and a 2016 paper describing the package. It says the package implements a broad class of Markov-switching GARCH models and supports simulation, maximum-likelihood and Bayesian estimation, plus risk measures such as Value-at-Risk and Expected Shortfall.

For an EGARCH specification, the answer directs users to select the eGARCH model option when creating a model specification. The package description supplies evidence of relevant modeling and risk-analysis capabilities, but the exchange does not demonstrate that every requested feature—especially direct control of the term structure or imposing long-term volatility—is available in the required form. Users should consult the package documentation and assess whether its specification and forecasting tools suit their analysis.

Key ideas

  • MSGARCH is recommended for Markov-switching GARCH-type models in R.
  • The package description covers simulation and maximum-likelihood or Bayesian estimation.
  • It includes Value-at-Risk and Expected Shortfall tools for risk analysis.
  • The answer identifies eGARCH as a selectable model type but does not verify every requested constraint or forecasting detail.

Tags

Full text
# Markov-Switching E-GARCH with R


# Markov-Switching E-GARCH with R












I am looking for a R library for modeling a Markov-Switching E-GARCH process.

In other questions at StackExchange related to GARCH models, the package rugarch is often mentionned. Do you recommend it in my case?

I would like that R library I am seeking had the following features:

- allows to observe/control the volatility term structure

- allows to impose long-term volatility

- has calibration routines

- includes forecasting procedures

In fact, I would like to carry out a volatility analysis work à la Carole Alexander, as described in her book Market Risk Analysis Volume II: Practical Financial Econometrics.

Thank you.

## Answer by vonjd (score 6, accepted)

https://quant.stackexchange.com/a/33609

There is now a package for that: The MSGARCH package, you can find it on CRAN.

You can find an exhaustive vignette here:

David Ardia, Keven Bluteau, Kris Boudt, Denis-Alexandre Trottier: Markov-Switching GARCH Models in R: The MSGARCH Package (2016)

Abstract

> Markov-switching GARCH models have become popular to model the structural break in the conditional variance dynamics of financial time series. In this paper, we describe the R package MSGARCH which implements Markov-switching GARCH-type models very effficiently by using C object-oriented programming techniques. It allows the user to perform simulations as well as Maximum Likelihood and Bayesian estimation of a very large class of Markov-switching GARCH-type models. Risk management tools such as Value-at-Risk and Expected-Shortfall calculations are available. An empirical illustration of the usefulness of the R package MSGARCH is presented.

For modelling EGARCH you set `model = "eGARCH"` in the `create.spec` function (see p. 2 in the abovementioned vignette).

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.