bsvarSIGNs
2.0Bayesian 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. 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 tool 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 package 'bsvars' by Woźniak (2024) doi:10.32614/CRAN.package.bsvars, 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.
Install
Health
- OK2026-05-0213 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-04-2212 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1811 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-04-109 OK · 5 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-098 OK · 5 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 20%
- References docs
- 44%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/bsvars/bsvarsigns on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 12 max
- Test cases
- 47 / 0.00 per code line
Test coverage
Line coverage
62%
Expression
62.3%
Tests / Examples
62.3% / 86% ex
Functions
130 1 exported
Complexity
2.2 avg / 12 max
Call network
130 nodes / 67 edges
Call graph
Open call graph →Lowest coverage
130 functions| Function | Cyclo | Coverage |
|---|---|---|
| specify_narrative exp | 12 | 0% |
| compute_conditional_sd.PosteriorBSVARSIGN | 1 | 0% |
| verify_traditional | 4 | 50% |
| verify_all | 7 | 55% |
| forecast.PosteriorBSVARSIGN | 3 | 62% |
| estimate.BSVARSIGN | 3 | 76% |
People & History
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.0Latest
- 1.0.12024-08-17 · diff ↗
- 1.02024-07-23
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-07-23
- Total releases
- 3 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 29 KB / 2 files
- Download size
- 1.2 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet