| qpm_scenario | R Documentation |
Adds a specified path of structural shocks to a forecast – "what if
oil pushes the exchange rate 10 percent weaker next quarter?" –
without any inversion. Under anticipated = TRUE the shock path is
announced at the start of the forecast and expectations react ahead
of it.
qpm_scenario(fc, shocks, anticipated = FALSE, label = NULL)
fc |
A |
shocks |
Named list: one entry per shock, each a named vector of
shock sizes (raw equation units) by period, e.g.
|
anticipated |
Announced at start ( |
label |
Optional scenario label for printing. |
The shifted qpm_forecast (bands unchanged: a deterministic
scenario shifts the mean, not the uncertainty).
sol <- qpm_solve(qpm_template("bkl"))
fc <- qpm_forecast(sol, horizon = 8)
dep <- qpm_scenario(fc, shocks = list(eps_q = c(h1 = 3)),
label = "10pct depreciation")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.