| irf | R Documentation |
Impulse response functions
irf(x, ...)
## S3 method for class 'qpm_solution'
irf(x, shock = NULL, horizon = 24, size = NULL, vars = NULL, ...)
x |
A |
... |
Passed to methods. |
shock |
Shock name(s); default all shocks. |
horizon |
Number of quarters after impact. |
size |
Shock size(s). Default is one standard deviation (from the
model's |
vars |
Variables to include; default all declared (non-auxiliary) variables. |
A data frame of class qpm_irf in long format with columns
shock, variable, horizon, value (deviations from steady
state). Printing shows peak effects; plot() draws panel charts.
sol <- qpm_solve(qpm_template("bkl"))
ir <- irf(sol, shock = "eps_i", horizon = 16)
ir
plot(ir, vars = c("pi", "y_gap", "i", "q"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.