Page 1 of 1

Loop

PostPosted: Thu Jan 24, 2008 10:28 am
by cortomaltese79
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.

PostPosted: Thu Jan 24, 2008 10:59 am
by MichelJuillard
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

PostPosted: Thu Jan 24, 2008 2:03 pm
by cortomaltese79
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.

PostPosted: Thu Jan 24, 2008 2:15 pm
by MichelJuillard
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

PostPosted: Fri Jan 25, 2008 9:12 am
by cortomaltese79
Ok, I will try,
Thanks a lot.