finalize_irf | R Documentation |
finalize_irf
transforms the structural impulse responses such
that they reflect the responses of the endogenous variables
to an exogenous shock of custom size, determined by the user.
Additionally, it accumulates impulse responses of differenced
variables such that they reflect the responses in levels.
Finally, variables in logs, log-differences or in relative differences
are multiplied by 100 such that they are transformed to percentages.
This function is intended for a single shock identification,
i.e. the output is a matrix with the columns containing the responses
of the variables to the shock.
finalize_irf(irf_obj, shock_size, norm_id, trans_ix, int_vars)
irf_obj |
array containing the structural impulse responses |
shock_size |
size of the shock |
norm_id |
vector of length two, which code the variable corresponding to the shock of interest and its ordering in the system |
trans_ix |
vector containing the transformation codes |
int_vars |
vector coding the interest variables |
A matrix containing the IRFs as columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.