Loop

I would like to run my Dynare’s code 100 times in a row. I think I have to do some kind of loop, but I am not sure I understood how.
Can anyone give me some hints or maybe send an example?
Many thanks.

It is usually better to write the loop inside the *.mod file than run Dynare in a loop. Tell us more about what you want to do and why.

Best

Michel

I would like to run my Dynare code 100 times to calculate then the average standard deviations and to compare them with the actual statistics.

Why don’t you want to use the theoretical moments. In a linear model, you don’t have to simulate to get the moments of the process

Best

Michel

Ok, I will try,
Thanks a lot.