Plots and Results in Julia

Hello,

In another post Michel pointed that irfs in Julia can be found here:
context.results.model_results[1].irfs[:enu][:y], where y denotes the variable to plot. context.results.model_results[1].irfs[:enu] produces the IRFs associated with the shock enu.

I am new to Julia, and getting used to the syntax. Is there a way to see the associated IRF function (the equivalent of the matlab irf function) so that I can see how the IRFs in Julia are produced and I can therefore customize my IRFs. Alternatively, how can I loop through the names of the variables I want to plot into different subplots?

Many thanks in advance.

Here is an example for looping thru the different IRFs

  • irf() returns a dictionary where the keys are the exogenous variables
  • for each exogenous variable ie[2] contains an AxisArrayTable with the IRFs for each endogenous variable
  • column_labels(ie[2])returns the list of endegenous variables for which an IRF exists
context = @dynare "example1";

using AxisArrayTables
for ie in irf()
   display(ie[1])
   for iv in column_labels(ie[2])
      display(ie[2][iv])
   end
end

Many thanks Michel!