plot_ribbon {bsvars} | R Documentation |
Plots the median and an interval between two specified percentiles
for a sequence of K
random variables
Description
Plots the median and an interval between two specified percentiles
for a sequence of K
random variables based on the S
posterior
draws provided for each of them.
Usage
plot_ribbon(
draws,
probability = 0.9,
col = "#ff69b4",
ylim,
ylab,
xlab,
start_at = 0,
add = FALSE,
...
)
Arguments
draws |
a |
probability |
a number from interval |
col |
a colour of the plot |
ylim |
the range of the |
ylab |
the label of the |
xlab |
the label of the |
start_at |
an integer to denote the beginning of the |
add |
a logical value. If |
... |
other graphical parameters to be passed to |
Author(s)
Tomasz Woźniak wozniak.tom@pm.me
Examples
data(us_fiscal_lsuw) # upload data
set.seed(123) # set seed
specification = specify_bsvar$new(us_fiscal_lsuw) # specify model
burn_in = estimate(specification, 10) # run the burn-in
posterior = estimate(burn_in, 20, thin = 1) # estimate the model
irf = compute_impulse_responses(posterior, horizon = 4) # impulse responses
plot_ribbon(irf[1,1,,])