Skip to content

bsvarSIGNs

3.0

Bayesian SVARs with Sign, Zero, and Narrative Restrictions

2packages depend
5.5Kdownloads / year
50.6%test coverage
13/13checks pass

Overview

About
Maintained by Xiaolei WangFirst published 2024-07-234 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 5.6 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.00
50.6%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • NOTE2026-04-10
    9 OK · 5 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-09
    8 OK · 5 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,231 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
29%
References docs
39%

Downloads

5.5K
CRAN downloads in the past year
Rank #5,820 · ~15/day · ~456/mo
Daily download trend is not available in this view yet.
43030 days
1.4K90 days
5.5K1 year
Compare downloads with other packages →
Also on461 r2u39 autocran

Repository

Repository
31Stars
6Forks
12Open issues
0Open PRs
4Releases
411Commits
3Contributors
econometricsrstatsbayesian-inferencevector-autoregressionrstats-package
411 commits · Last activity 2026-08-22 · +3.3% stars, 30d

Stars over time

2025-06-30 · 212026-08-22 · 31

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/bsvars/bsvarsigns on 2026-08-23.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)
Depends (3)
Imports (5)
Suggests (2)
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Contributors (1)
Contributor · added in 3.0
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 3.0Latest
    2026-08-21 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0
    2025-01-30 · diff ↗
  • 1.0.1
    2024-08-17 · diff ↗
  • 1.0
    2024-07-23
  • R
    R 4.4.0 released · 2024-04-24

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
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bsvarSIGNs")
Wang, X., Shang, F., & Woźniak, T. (2026). bsvarSIGNs: Bayesian SVARs with Sign, Zero, and Narrative Restrictions (Version 3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.bsvarSIGNs

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bsvarSIGNs version 3.0 [Data set]. HJJB, LLC. Data release v2026-08-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy