finalize_irf: Finalize IRF for the plots

View source: R/z_utils.R

finalize_irfR Documentation

Finalize IRF for the plots

Description

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.

Usage

finalize_irf(irf_obj, shock_size, norm_id, trans_ix, int_vars)

Arguments

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

Value

A matrix containing the IRFs as columns


juhokalle/rmfd4dfm documentation built on July 18, 2024, 10:19 p.m.