Loading parameters into mod file

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.

Loading parameters into mod file

Postby rapier » Fri Sep 10, 2010 2:21 am

I am trying to make a loop to check the changes of steady state and impulse response as parameters change. So I made param.mat file from Matlab, and used load command. But it did not work. To be more specific, this attached mod file works fine when I include all parameters in the mod file, but when I use load command, Matlab reports the following error messages:

"numerical initial values incompatible with the following equations"

Can anyone help me to find out what's wrong?
Attachments
test_load.mod
(3.4 KiB) Downloaded 333 times
rapier
 
Posts: 1
Joined: Fri Sep 10, 2010 12:15 am

Re: Loading parameters into mod file

Postby StephaneAdjemian » Fri Sep 10, 2010 9:08 am

Hi, you did not post the mat file. I don't know what you wrote in this missing file but I guess it will not work. If you want to change the values of some of the parameters you can use a matlab loop around steady and/or stoch_simul commands (you will find examples on the forum). If you are not familiar with matlab coding you can give a try to the macro language described here on the wiki.

Also, I was not able to find the steady state with your calibration. The initial values declared in the initval block are probably too far from the steady state.

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests