Description Usage Arguments Value Note See Also Examples
Form the joint posterior sampler from the MCMC output.
1 | formSmpl(MCMC, l.bi = 0, batch.size = 1)
|
MCMC |
object of the class |
l.bi |
length of the burn-in phase. |
batch.size |
batching size used to diminish the autocorrelation within the chains. |
The joint posterior sample as an mcmc
object (R package coda).
Please cite the package in publications. Use citation("bayesGARCH")
.
bayesGARCH
for the Bayesian estimation of the GARCH(1,1)
model with Student-t innovations.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## !!! INCREASE THE NUMBER OF MCMC ITERATIONS !!!
## LOAD DATA SET
data(dem2gbp)
y <- dem2gbp[1:750]
## RUN THE ESTIMATION
MCMC <- bayesGARCH(y, control = list(n.chain = 2, l.chain = 100))
## FORM THE SAMPLE FROM THE MCMC OUTPUT
smpl <- formSmpl(MCMC, l.bi = 50, batch.size = 2)
## POSTERIOR STATISTICS
summary(smpl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.