From c19f969843b122d78a0975e7368b7202bca24f1b Mon Sep 17 00:00:00 2001 From: Thore Kockerols Date: Fri, 25 Oct 2024 16:27:11 +0000 Subject: [PATCH] shock size in plotting --- src/plotting.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plotting.jl b/src/plotting.jl index 6433b9ca..a405ab94 100644 --- a/src/plotting.jl +++ b/src/plotting.jl @@ -455,6 +455,7 @@ function plot_irf(𝓂::ℳ; plots_per_page::Int = 9, algorithm::Symbol = :first_order, negative_shock::Bool = false, + shock_size::Real = 1, generalised_irf::Bool = false, initial_state::Union{Vector{Vector{Float64}},Vector{Float64}} = [0.0], ignore_obc::Bool = false, @@ -557,6 +558,7 @@ function plot_irf(𝓂::ℳ; 𝓂.timings; periods = periods, shocks = shocks, + shock_size = shock_size, variables = variables, negative_shock = negative_shock)#, warmup_periods::Int = 100, draws::Int = 50, iterations_to_steady_state::Int = 500) else @@ -676,6 +678,7 @@ function plot_irf(𝓂::ℳ; 𝓂.timings; periods = periods, shocks = shocks, + shock_size = shock_size, variables = variables, negative_shock = negative_shock) .+ SSS_delta[var_idx] else @@ -685,6 +688,7 @@ function plot_irf(𝓂::ℳ; 𝓂.timings; periods = periods, shocks = shocks, + shock_size = shock_size, variables = variables, negative_shock = negative_shock) .+ SSS_delta[var_idx] end