Hi everyone,
I am having trouble computing empirical moments of a model using second order approximation.
When I use the command
stoch_simul(IRF=0,ORDER=1,periods=500) y, ys, c, cs, invt, rer;
the model produces moments and cross-correlations of these variables.
However, when I switch the command to
stoch_simul(IRF=0,ORDER=2,periods=500) y, ys, c, cs, invt, rer;
computation time increases, and all moments, correlations, etc. are reported as NAN.
Finally, if I use the command
stoch_simul(IRF=0,ORDER=2) y, ys, c, cs, invt, rer;
everything works fine again.
Does anyone know what the issue is? More importantly, I am simulating the model using simult_.m file. Since the file uses policy functions which are computed properly in all of the above three examples, does it even matter (for the purposes of generating simulated data) whether I do or do not include the "periods" option?
By the way, I using version 4.2.4
Thank you!
Olena