Markov-Switching GARCH Models in R: The MSGARCH Package
34 Pages Posted: 2 Oct 2016 Last revised: 18 Nov 2017
Date Written: September 20, 2016
We describe the package MSGARCH, which implements Markov-switching GARCH models in R with efficient C object-oriented programming. Markov-switching GARCH models have become popular methods to account for regime changes in the conditional variance dynamics of time series. The package MSGARCH allows the user to perform simulations as well as Maximum Likelihood and MCMC/Bayesian estimations of a very large class of Markov-switching GARCH-type models. The package also provides methods to make single-step and multi-step ahead forecasts of the complete conditional density of the variable of interest. Risk management tools to estimate conditional volatility, Value-at-Risk and Expected Shortfall are also available. We illustrate the broad functionality of the MSGARCH package using exchange rate and stock market return data.
Keywords: GARCH, MSGARCH, Markov-switching, conditional volatility, forecasting, R software
JEL Classification: C01, C24, C53, C58
Suggested Citation: Suggested Citation