Loop

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Loop

Postby cortomaltese79 » Thu Jan 24, 2008 10:28 am

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.
cortomaltese79
 
Posts: 5
Joined: Tue Dec 04, 2007 1:41 pm

Postby MichelJuillard » Thu Jan 24, 2008 10:59 am

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
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby cortomaltese79 » Thu Jan 24, 2008 2:03 pm

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.
cortomaltese79
 
Posts: 5
Joined: Tue Dec 04, 2007 1:41 pm

Postby MichelJuillard » Thu Jan 24, 2008 2:15 pm

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
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby cortomaltese79 » Fri Jan 25, 2008 9:12 am

Ok, I will try,
Thanks a lot.
cortomaltese79
 
Posts: 5
Joined: Tue Dec 04, 2007 1:41 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests