Skip to contents

Plots posterior probabilities and posterior summaries for sign, zero, structural, or narrative restrictions.

Usage

plot_restriction_audit(
  object,
  restrictions = NULL,
  zero_tol = 1e-08,
  probability = 0.9,
  models = NULL,
  label_style = c("raw", "pretty"),
  labels = NULL,
  restriction_types = NULL,
  ...
)

Arguments

object

A restriction-audit table or an object accepted by restriction_audit().

restrictions

Optional list of restriction specifications evaluated by restriction_audit() when object does not already contain posterior restriction probabilities.

zero_tol

Numerical tolerance for zero restrictions.

probability

Probability mass of the equal-tailed credible intervals reported in posterior summaries.

models

Model specifications to include.

label_style

Restriction label style: "raw" or "pretty".

labels

Optional named character vector overriding restriction labels by raw restriction string.

restriction_types

Types of identifying restrictions to include.

...

Additional arguments passed to restriction_audit().

Value

A ggplot object.

Examples

data(us_fiscal_lsuw, package = "bsvars")
spec <- bsvars::specify_bsvar$new(us_fiscal_lsuw, p = 1)
#> The identification is set to the default option of lower-triangular structural matrix.
post <- bsvars::estimate(spec, S = 5, show_progress = FALSE)

r <- list(irf_restriction("gdp", "gdp", 0, sign = 1))
audit <- restriction_audit(post, restrictions = r)
p <- plot_restriction_audit(audit)