Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predprecWB

Predicts precision matrix and its determinant (Woodbury variant)


Description

predprecWB simulates from the posterior predictive distribution of the model-implied precision matrix and its determinant using the Woodbury matrix identity and the matrix determinant lemma

Usage

predprecWB(x, ahead = 1, each = 1)

Arguments

x

Object of class 'fsvdraws', usually resulting from a call to fsvsample.

ahead

Vector of timepoints, indicating how many steps to predict ahead.

each

Single integer (or coercible to such) indicating how often should be drawn from the posterior predictive distribution for each draw that has been stored during MCMC sampling.

Value

List containing two elements:

  • precisionArray containing the draws of the predicted precision matrix.

  • precisionlogdetMatrix containing the draws of the determinant of the predicted precision matrix.

Note

Currently crudely implemented as a triple loop in pure R, may be slow.

See Also

Usually used for evaluating the predictive likelihood when many series but few factors are used, see predloglik and predloglikWB.

Other predictors: predcond(), predcor(), predcov(), predh(), predloglikWB(), predloglik()


factorstochvol

Bayesian Estimation of (Sparse) Latent Factor Stochastic Volatility Models

v0.10.2
GPL (>= 2)
Authors
Gregor Kastner [aut, cre] (<https://orcid.org/0000-0002-8237-8271>), Darjus Hosszejni [ctb] (<https://orcid.org/0000-0002-3803-691X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.