Page 1 of 1

Two models (different parameters) and one .mod file

PostPosted: Thu Apr 24, 2014 9:53 pm
by petros_varth
Hi All,

I use a standard New Keynesian model, i would like to run the model with and without (flexible model) nominal rigidities. Then, i would like to use specific variables, i.e. output, of the flexible model as a target variable in the rigid model. Any ideas how to do this while running only a mod. file?

Best,

P.

Re: Two models (different parameters) and one .mod file

PostPosted: Mon Apr 28, 2014 10:29 am
by HoutanBastani
You can invoke dynare twice from a matlab script. By using the macroprocessing language in your mod file and passing macro values on the dynare command line with the -D option you can do what you want. See the manual for the macroprocessing language and dynare invocation options.

Re: Two models (different parameters) and one .mod file

PostPosted: Thu May 01, 2014 11:26 am
by petros_varth
Thanks a lot.

I tried this and it works fine.

P.

Re: Two models (different parameters) and one .mod file

PostPosted: Fri May 02, 2014 10:03 pm
by ahnulxy
Actually, there are other ways out.
If the model if not so complex, you can actually calculate the flexible output and get a closed form for the flexible output. And then you can define this flexible output as another variable in the same mod file without using two mod file.

If you have capital in the model, usually, flexible output does not has a closed form solution.