*! version 16.0 18march2021

[VAR-NR] shock_name() -- Input names of structural shocks (for plotting)

Syntax

transmorphic scalar
shock_name(string vector names, transmorphic scalar S)

Description

shock_name(names,S) loads the strings contained in the string
vector names into an associative array carrying sign restriction iformation
generated by shock_create(). The number of strings in the
array should be equal to the number of endogenous variables and should be
entered in the order that these variables were entered when var was
initially run. For example, if the user ran "var inflation unemployment",
their array should be ordered as ("Supply Shock","Demand Shock"). If the user
does not wish to name a given shock, its slot in the array should be filled
with an empty string: "". The function has no output, but updates S.

Remarks

shock_name() can be called in Stata using function
var_nr_shock_name.

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).