@@ -3,6 +3,8 @@ using MacroModelling, StatsPlots
33
44# TODO :
55# fix other twinx situations (simplify it), especially bar plot in decomposition can have dual axis with the yticks trick
6+ # put plots back in Docs
7+ # redo plots in docs
68
79include (" ../models/GNSS_2010.jl" )
810
@@ -87,7 +89,7 @@ plot_irf!(model, shocks = [:e_j, :e_me],
8789 variables = vars)
8890
8991plot_irf! (model,
90- plot_type = :stack ,
92+ # plot_type = :stack,
9193 variables = vars)
9294
9395
@@ -319,6 +321,10 @@ include("models/SW07_nonlinear.jl")
319321hcat (SS (SW07_nonlinear, derivatives = false , parameters = [:ctrend => .35 , :curvw => 10 , :calfa => 0.18003 ])[30 : end ]
320322,SS (SW07_nonlinear, derivatives = false , parameters = :calfa => 0.15 )[30 : end ])
321323
324+ get_shocks (SW07_nonlinear)
325+ shock_series = KeyedArray (zeros (2 ,12 ), Shocks = [:eb , :ew ], Periods = 1 : 12 )
326+ shock_series[1 ,2 ] = 1
327+ shock_series[2 ,12 ] = - 1
322328plot_irf (SW07_nonlinear, shocks = :ew ,
323329 # negative_shock = true,
324330 # generalised_irf = false,
@@ -329,6 +335,17 @@ plot_irf(SW07_nonlinear, shocks = :ew,
329335 # variables = [:ygap],
330336 parameters = [:ctrend => .35 , :curvw => 10 , :calfa => 0.18003 ])
331337
338+
339+ plot_irf! (SW07_nonlinear, shocks = shock_series,
340+ # negative_shock = true,
341+ # generalised_irf = false,
342+ # algorithm = :pruned_second_order,
343+ # variables = [:robs,:ygap,:pinf,
344+ # :gamw1,:gamw2,:gamw3,
345+ # :inve,:c,:k],
346+ # variables = [:ygap],
347+ parameters = [:ctrend => .35 , :curvw => 10 , :calfa => 0.18003 ])
348+
332349plot_irf! (SW07_nonlinear, shocks = :ew ,
333350 # generalised_irf = true,
334351 algorithm = :pruned_second_order ,
0 commit comments