*! version 16.0 23march2021

[VAR-NR] var_nr_hd_plot -- plot the historical decomposition of the SVAR

Syntax

var_nr_hd_plot
,

varname("string")
optname("string")
hd("string")
[srname("string")]

Description

var_nr_hd_plot plots the the historical decomposition of the structural
shocks estimated using var_nr_hd specified in hd for
the SVAR specified in varname and estimated previously using
var_nr.

If the SVAR was identified using [narrative] sign restrictions, srname
must be specified with the name of the credible set output by
var_nr_sign_restrict.

Options for historical decomposition plotting are set to defaults when
var_nr is run and are adjusted using
var_nr_options in Stata or using standard
structure.element structure syntax in Mata. Options affecting HD
plotting are outlined below. Note that the options that determine the
var_nr_hd calculations also affect var_nr_hd_plot(),
so these should be kept constant for the purpose of plotting.

Options

save_fmt specifies the file type that output plots should be saved as.
Outputs are automatically saved to the current working directory. If "none" is
specified, then the plots are displayed, but not saved. "none" is the default.

shck_plt allows the user to select just one variable for which the
historical decomposition should be plotted. If "all" is specified,
var_nr_hd_plot() will plot historical decompositions for all endogenous
variables. If a variable name is specified, the function will only plot the
historical decomposition for the specified variable. "all" is the default.

Remarks

var_nr_hd runs the Mata function hd_plot().

For an overview of functions in the toolbox, see

[VAR-NR] var_nr Toolbox -- Stata functions and Mata functions.

Sources

Code follows Kilian and Lutkepohl's notation in
Structural Vector Autoregressive Analysis (2016).