Retrieving series of endogenous variables from extended path

Dear All,

I am trying to plot time series of endogenous variables from the extended path algorithm. Unlike the ‘stoch_simul’ command, the the ep command
does not seem to deliver the ‘endos’ in a recognizable format, that is, as these are declared in the .mod file.

Any tips?

Best,
Tor Einarsson

Try the rplot-command.

Great thanks. The rplot command works fine, as far as it goes. But then the question is: does it offer any options, in line with the matlab subplot environment, providing control for colour, linewith, etc?

Best,
Tor

No, in that case you have to construct the plot yourself, using e.g.

figure

subplot(2,2,1)

plot(0:options_.periods,oo_.endo_simul(strmatch('x',M_.endo_names,'exact'),M_.maximum_lag+1:M_.maximum_lag+1+options_.periods),'-x')

Thank you.

If one wishes to keep within the matlab subplot environment, I found that one convenient way is to save the simulated series with the ‘dynasave’ command, and load them back with the ‘load -mat’ command, i.e.:

 dynasave (endog);
 load -mat endog;    

(‘endog’ being the file containing the simulated series)

Best,
Tor