Closed eloualiche closed 1 year ago
the standard behaviour of simulate
is to return absolute deviations from steady state. if you want levels just do: simulate(AR1, levels = true, periods=1000, algorithm=:third_order)
. you can also plot the simulations: plot_simulations(AR1, algorithm = :third_order, periods=1000)
in which case he automatically shows the level and percent deviations for strictly positive variables.
I guess you expected levels as output from simulate
. I forgot why I made absolute deviations the default output of simulate
. let me think about it again
going through the code it seems there is no good reason to return absolute deviations by default. In the next release simulate will return levels by default
Thank you!
I am trying to understand how to simulate an AR1 process. I was having some issues with negative values even after taking exponentials.
I will try to reproduce this in a simple example below.
Both of the variables are set at zero (when we would expect exp_z to be at 1).
The counterpart in dynare would look like
and in matlab, looking at the simulation results gives:
I am wondering if I am missing something about the log-linearization of the variables here?