Bayesian SVARs with Sign, Zero, and Narrative Restrictions
Overview
Implements state-of-the-art algorithms for the Bayesian analysis of Structural Vector Autoregressions (SVARs) identified by sign, zero, and narrative restrictions. The core model is based on a flexible Vector Autoregression with estimated hyper-parameters of the Minnesota prior and the dummy observation priors as in Giannone, Lenza, Primiceri (2015) doi:10.1162/REST_a_00483 extended by the COVID-specific heteroskedasticity proposed by Lenza, Primiceri (2022) doi:10.1002/jae.2895. The sign restrictions are implemented employing the methods proposed by Rubio-Ramírez, Waggoner & Zha (2010) doi:10.1111/j.1467-937X.2009.00578.x, while identification through sign and zero restrictions follows the approach developed by Arias, Rubio-Ramírez, & Waggoner (2018) doi:10.3982/ECTA14468. Furthermore, our toolset provides algorithms for identification via sign and narrative restrictions, in line with the methods introduced by Antolín-Díaz and Rubio-Ramírez (2018) doi:10.1257/aer.20161852. Users can also estimate a model with sign, zero, and narrative restrictions imposed at once. The package facilitates predictive and structural analyses using impulse responses, forecast error variance and historical decompositions, forecasting and conditional forecasting, as well as analyses of structural shocks and fitted values. All this is complemented by colourful plots, user-friendly summary functions, and comprehensive documentation including the vignette by Wang & Woźniak (2024) doi:10.48550/arXiv.2501.16711. The 'bsvarSIGNs' package is aligned regarding objects, workflows, and code structure with the R packages 'bsvars' by Woźniak (2024) doi:10.32614/CRAN.package.bsvars, 'bvars' by Liu, Ramirez Hassan, Woźniak (2026) doi:10.32614/CRAN.package.bvars, and 'bpvars' by Woźniak (2026) doi:10.32614/CRAN.package.bpvars, and they constitute an integrated toolset. It was granted the Di Cook Open-Source Statistical Software Award by the Statistical Society of Australia in 2024.
1. Parallelized code for posterior sampling #77
2. Small open economy with fast zero restrictions #82
3. Fix forecasting code with Covid hyperparameters #85 by Fei Shang
4. Move spec$prior$estimate_hyper()) to spec$estimate_hyper() #48
5. Updated forecasting formatting #80
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-02
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 3 earlier changesHide 3 earlier changes
- NOTE9 OK, 5 NOTE2026-04-10
- ERROR8 OK, 5 NOTE, 1 ERROR2026-04-09
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 18 (1 internal)includes a package overview page
- Examples that run
- 100%15 run in a plain check
- Exported functions with examples
- 86%
- Documented parameters
- 100%
- Return-value docs
- 29%
- Help pages citing references
- 39%
Downloads
Repository
- PRs merged (all time)
- 90%
- Median days to close, 50 most recently updated closed issues
- 27
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/bsvars/bsvarsigns on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-03 · The repository has a site deploy workflow
pkgdown site last built 2026-08-25
Dependencies
Installing bsvarSIGNs adds 10 packages (6 with compiled code, 7.4 MB of source tarballs). Heaviest: stochvol 3.2 MB, Rcpp 1.8 MB, bsvars 1.2 MB.
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2024-07-23
- Total releases
- 4 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 29 KB / 2 files
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("bsvarSIGNs")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.bsvarsigns, 10.48550/arxiv.2501.16711.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.