Hi, I am trying to replicate 100 times a basic RBC economy as follows.
for j=1:100,
stoch_simul(periods=128, hp_filter=1600,IRF=0,noprint);
end;
I have got complex numbers in filtering the simulated series and computing the mean of my summary statistics. This is due to the fact that dynare has generated negative values for investment.
I would appreciate if you could suggest another way of writing the loop to avoid these problems. Regards