Package: bayesianVARs 0.1.8

Luis Gruber

bayesianVARs: MCMC Estimation of Bayesian Vectorautoregressions

Efficient Markov Chain Monte Carlo (MCMC) algorithms for the fully Bayesian estimation of vectorautoregressions (VARs) featuring stochastic volatility (SV). Implements state-of-the-art shrinkage priors following Gruber & Kastner (2025) <doi:10.1016/j.ijforecast.2025.02.001>. Efficient equation-per-equation estimation following Kastner & Huber (2020) <doi:10.1002/for.2680> and Carrerio et al. (2021) <doi:10.1016/j.jeconom.2021.11.010>.

Authors:Luis Gruber [cph, aut, cre], Stefan Haan [aut], Gregor Kastner [aut, ths]

bayesianVARs_0.1.8.tar.gz
bayesianVARs_0.1.8.tar.gz(r-4.7-arm64)bayesianVARs_0.1.8.tar.gz(r-4.7-x86_64)bayesianVARs_0.1.8.tar.gz(r-4.6-arm64)bayesianVARs_0.1.8.tar.gz(r-4.6-x86_64)
bayesianVARs_0.1.8.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
bayesianVARs/json (API)
NEWS

# Install 'bayesianVARs' in R:
install.packages('bayesianVARs', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/luisgruber/bayesianvars/issues

Pkgdown/docs site:https://luisgruber.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

quartoopenblascpp

3.84 score 1 stars 23 scripts 367 downloads 9 exports 23 dependencies

Last updated from:64d81868e8. Checks:4 WARNING, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64WARNING228
linux-devel-x86_64WARNING222
source / vignettesOK423
linux-release-arm64WARNING251
linux-release-x86_64WARNING218
wasm-releaseOK130

Exports:bvarextractB0irfmy_gigposterior_heatmapspecify_prior_phispecify_prior_sigmaspecify_structural_restrictionsstable_bvar

Dependencies:clicodacolorspacecorrplotfactorstochvolfarverGIGrvggluelabelinglatticelifecyclelpSolveAPIMASSmvtnormR6RColorBrewerRcppRcppArmadilloRcppProgressrlangscalesstochvolviridisLite

Compute Impulse Response Functions to Structural Shocks using bayesianVARs

Rendered fromirf-vignette.Rmdusingknitr::rmarkdownon Jun 19 2026.

Last update: 2026-01-28
Started: 2026-01-28

Scalability of bayesianVARs

Rendered fromscalability-vignette.qmdusingquarto::htmlon Jun 19 2026.

Last update: 2026-01-28
Started: 2026-01-28

Shrinkage Priors for Bayesian Vectorautoregressions featuring Stochastic Volatility Using the R Package bayesianVARs

Rendered frombayesianVARs-vignette.Rmdusingknitr::rmarkdownon Jun 19 2026.

Last update: 2026-01-28
Started: 2024-01-14

Readme and manuals

Help Manual

Help pageTopics
Extract or Replace Parts of a bayesianVARs_coef object[.bayesianVARs_coef
Extract or Replace Parts of a bayesianVARs_draws object[.bayesianVARs_draws
Markov Chain Monte Carlo Sampling for Bayesian Vectorautoregressionsbvar
Extract VAR coefficientscoef coef.bayesianVARs_bvar
Retrieve the structural parameter \boldsymbol{B}_0 samples from an IRF object.extractB0
Simulate fitted/predicted historical values for an estimated VAR modelfitted.bayesianVARs_bvar
Impulse response functionsirf
Draw from generalized inverse Gaussianmy_gig
Pairwise visualization of out-of-sample posterior predictive densities.pairs.bayesianVARs_predict pairs_predict
Plot method for bayesianVARs_bvarplot.bayesianVARs_bvar
Visualization of in-sample fit of an estimated VAR.plot.bayesianVARs_fitted
Impulse Responses Plotplot.bayesianVARs_irf
Fan chartplot.bayesianVARs_predict
Visualization of the residuals of an estimated VAR.plot.bayesianVARs_residuals
Posterior heatmaps for matrix valued parametersposterior_heatmap
Predict method for Bayesian VARspredict.bayesianVARs_bvar
Pretty printing of a bvar objectprint.bayesianVARs_bvar
Print method for bayesianVARs_predict objectsprint.bayesianVARs_predict
Print method for summary.bayesianVARs_bvar objectsprint.summary.bayesianVARs_bvar
Print method for summary.bayesianVARs_predict objectsprint.summary.bayesianVARs_predict
Extract Model Residualsresiduals.bayesianVARs_bvar
Specify prior on PHIspecify_prior_phi
Specify prior on Sigmaspecify_prior_sigma
Set identifying restrictions for the structural VAR parameters.specify_structural_restrictions
Stable posterior drawsstable_bvar
Summary method for bayesianVARs_bvar objectssummary.bayesianVARs_bvar
Summary statistics for bayesianVARs posterior draws.summary.bayesianVARs_draws
Summary method for bayesianVARs_predict objectssummary.bayesianVARs_predict
Data from the US-economyusmacro_growth
Extract posterior draws of the (time-varying) variance-covariance matrix for a VAR modelvcov.bayesianVARs_bvar