Plots posterior probability statements for impulse responses or cumulative multipliers
Source:R/plot-statements.R
plot_hypothesis.RdPlots posterior probabilities of threshold or pairwise statements about impulse responses or cumulative dynamic multipliers.
Arguments
- object
A hypothesis table, a magnitude-audit table, or an object accepted by
hypothesis_irf()/hypothesis_cdm().- type
One of
"irf"or"cdm"whenobjectis not already a posterior-statement table.- variable
Optional left-hand-side response variable selection.
- shock
Optional left-hand-side shock selection.
- horizon
Optional left-hand-side horizon selection.
- relation
Comparison operator.
- value
Scalar comparison value for threshold statements.
- compare_to
Optional right-hand-side response specification.
- absolute
If
TRUE, compare absolute responses.- probability
Probability mass of the equal-tailed credible interval for the posterior difference.
- models
Model specifications to include.
- scale_by
Optional scaling mode for CDMs.
- scale_var
Optional scaling variable specification.
- ...
Additional arguments passed to computation methods.
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)
h <- hypothesis_irf(post, variables = "gdp", shocks = "gdp",
horizon = 0:2, relation = ">", value = 0)
p <- plot_hypothesis(h)