1000 simulations

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.

1000 simulations

Postby liu.mendoza » Fri Oct 30, 2009 5:07 pm

Hi:

This is for an assignment for my university. I must run a model in Dynare and then save the variances of the endogenous variables (output gap, inflation and interest rate; YY, INF, II, respectively, in the attached file). I must do it 1000 times changing the parameter "theta_inf_min", and the plot the relationships between the variance of inflation and the variance of output gap, and then variance of inflation and the variance of the interest rate.

My problem is that I'was trying to save all the variances in a matrix, but every time dynare is run, that matrix (and every other object) are cleared. After I ran Dynare, I found an m-file that it's automatically created which have a "clear all" command tha clears the matrix I created. How can I disable that "clear all" command? I have been trying to find it, but I couldn't.

Best regards,

Liu Mendoza

Pd. I apologize about my English; I'm from Peru, so I speak Spanish.
Attachments
preg6parteb.mod
This is my mod file
(1.57 KiB) Downloaded 156 times
liu.mendoza
 
Posts: 2
Joined: Fri Oct 30, 2009 4:38 pm

Re: 1000 simulations

Postby SébastienVillemot » Tue Nov 03, 2009 9:54 am

Put the "noclearall" option on the Dynare command line, as documented in the reference manual:
http://www.dynare.org/manual/re01.html

For example:

Code: Select all
dynare mymodel.mod noclearall


Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: 1000 simulations

Postby liu.mendoza » Wed Nov 04, 2009 12:03 am

Thank you very much.
Best regards,
Liu Mendoza
liu.mendoza
 
Posts: 2
Joined: Fri Oct 30, 2009 4:38 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 15 guests