Skip to contents

bsvarPost 1.0.0

Initial CRAN release.

Breaking changes and deprecations

  • The variable and shock (singular) arguments are deprecated in favour of variables and shocks (plural) throughout the package. The singular forms still work and produce a warning; they will be removed in a future version.

Core posterior extraction

  • tidy_irf() extracts impulse responses from PosteriorBSVAR, PosteriorBSVARSV, PosteriorBSVARMIX, PosteriorBSVARMSH, PosteriorBSVART, and PosteriorBSVARSIGN objects into tidy tibbles with credible-interval columns.
  • tidy_cdm() extracts cumulative dynamic multipliers for all supported posterior types.
  • tidy_fevd() extracts forecast error variance decompositions (reported on the 0–100 percentage scale used by ‘bsvars’).
  • tidy_shocks() extracts structural shocks.
  • tidy_hd() extracts historical decompositions.
  • tidy_forecast() extracts out-of-sample forecasts.
  • cdm() estimates cumulative dynamic multipliers directly from any supported posterior object, bridging ‘bsvars’ and ‘bsvarSIGNs’ in a single call.

Hypothesis testing and inference

Representative model selection

Response summaries

  • peak_response() locates the horizon of maximum absolute impulse response and its posterior distribution.
  • duration_response() summarises the number of horizons for which a response remains above a threshold.
  • half_life_response() computes the posterior distribution of the half-life of a response decay.
  • time_to_threshold() computes the posterior distribution of the first horizon at which a response crosses a user-specified threshold.

Model comparison

Restriction and acceptance auditing

Event-study helpers

  • tidy_hd_event() summarises historical decomposition contributions within a user-specified event window.
  • shock_ranking() ranks shocks by their contribution to a target variable within an event window.

Plotting and reporting

  • autoplot() support for all tidy extractors (PosteriorIR, PosteriorCDM, PosteriorFEVD, PosteriorSHOCKS, PosteriorHD, PosteriorFORECAST), all comparison outputs, simultaneous bands, and joint hypothesis objects.
  • theme_bsvarpost() provides a minimal publication-ready ggplot2 theme.
  • style_bsvar_plot() applies consistent axis, legend, and colour styling to any bsvarPost ggplot2 output.
  • publish_bsvar_plot() applies family-aware publication templates across comparison, representative, diagnostics, event-study, and joint-inference outputs.
  • as_gt(), as_flextable(), and as_kable() convert tidy bsvarPost tables to formatted gt, flextable, and knitr::kable outputs for publication documents.
  • write_bsvar_csv() writes any tidy bsvarPost table to CSV.
  • report_bundle() produces a paired plot-and-table bundle suitable for publication workflows, with support for representative-response, acceptance-diagnostics, simultaneous-band, joint-hypothesis, and event-study objects.
  • report_table() generates compact or default publication-oriented table layouts with family-specific labels and subtitles.