t_sampleLogVols | R Documentation |
Compute one draw of the log-volatilities using a discrete mixture of Gaussians
approximation to the likelihood (see Omori, Chib, Shephard, and Nakajima, 2007)
where the log-vols are assumed to follow an TAR(1) model with time-dependent
innovation variances. More generally, the code operates for p
independent
TAR(1) log-vol processes to produce an efficient joint sampler in O(Tp)
time.
t_sampleLogVols(
h_y,
h_prev,
h_mu,
h_phi,
h_phi2,
h_sigma_eta_t,
h_sigma_eta_0,
h_st,
loc
)
h_y |
the |
h_prev |
the |
h_mu |
the |
h_phi |
the |
h_phi2 |
the |
h_sigma_eta_t |
the |
h_sigma_eta_0 |
the |
h_st |
the |
loc |
list of the row and column indices to fill in the band-sparse matrix in the sampler |
T x p
vector of simulated log-vols
For Bayesian trend filtering, p = 1
. More generally, the sampler allows for
p > 1
but assumes (contemporaneous) independence across the log-vols for j = 1,...,p
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.