bayesDccGarch-package {bayesDccGarch}R Documentation

bayesDccGARCH: Methods and tools for Bayesian analysis of DCC-GARCH(1,1) Model.

Description

In this package we implemented functions for Bayesian analysis of DCC-GARCH(1,1) Model using the same modelling of Fioruci et al (2014a). Several probabilities distributions are available for the errors which can model both skewness and heavy tails. See Fioruci et al (2014b) for more details about the package.

Details

Package: bayesDccGarch
Type: Package
Version: 2.0
Date: 2016-01-29
License: GPL (>=2.14)

bayesDccGarch(mY, n_sim = 10000)

Author(s)

Jose Augusto Fiorucci, Ricardo Sandes Ehlers and Francisco Louzada. Maintainer: Jose Augusto Fiorucci <jafioruci@gmail.com> and Ricardo Sandes Ehlers <ehlers@icmc.usp.br>

References

Fioruci, J.A., Ehlers, R.S., Andrade Filho, M.G. Bayesian multivariate GARCH models with dynamic correlations and asymmetric error distributions, Journal of Applied Statistics, 41(2), 320–331, 2014a. http://dx.doi.org/10.1080/02664763.2013.839635.

Fioruci, J.A., Ehlers, R.S., Louzada, F. BayesDccGarch - An Implementation of Multivariate GARCH DCC Models, ArXiv e-prints, 2014b. http://adsabs.harvard.edu/abs/2014arXiv1412.2967F.

See Also

Available functions: bayesDccGarch, logLikDccGarch, dssnorm, dsst, dssged, plot, plotVol

For classical estimation see Package ccgarch.

Examples


data(DaxCacNik)  
Dax = DaxCacNik[,1]

### DCC-GARCH(1,1) ###
out = bayesDccGarch(DaxCacNik[1:10,], nSim=1000) # more data is necessary
summary(out)
plot(out) 

######## using more data and more simulation ###################
### GARCH(1,1) ###
# out = bayesDccGarch(Dax, nSim=20000)
# out2 = window(out, start=5000) # removing the first 5000 as burning
# summary(out2)
# plot(out2$MC) ##ploting Markov chain
# plot(out2)    ##ploting volatilities
 
### DCC-GARCH(1,1) with SSGED innovations ###
# out = bayesDccGarch(DaxCacNik, nSim=20000, tail_ini=1.5, errorDist=3)
# out2 = increaseSim(out, 10000) # more 10000 simulations
# out3 = window(out2, start=5000)  # removing the first 5000 as burning
# summary(out3)
#
### Plotting volatilities #
# plot(out3)
#
### Plotting Markov Chain #
# plot(out3$MC)
#
############################################################

######  log-likelihood function of GARCH(1,1) model with SST innovations ####
logLikDccGarch(Dax, omega=0.03, alpha=0.03, beta=0.8, gamma=0.7)$value

######  log-likelihood function of DCC-GARCH(1,1) model with SST innovations ####
logLikDccGarch(DaxCacNik, omega=c(0.02,0.01,0.03), alpha=c(0.02,0.01,0.03))$value


[Package bayesDccGarch version 2.0 Index]