separat file for the model block

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.

separat file for the model block

Postby maxlampe » Fri Sep 18, 2015 9:46 am

Hi,

this is more a technical question:

Is it possible to use a separat (mod) file to safe the model block and than load this mod file from a master file?
this would be really helpfull in organising things.

The model most of the time stays more or less the same or in case you do changes I would like to test all computations with the
adapted model.
But I want to test multiple estimation methods and Parameter Settings prefereably in separate Folders such that
i can better compare results afterwards and reuse the results.

Thank you in advance.
maxlampe
 
Posts: 1
Joined: Mon Dec 22, 2014 4:22 pm

Re: separat file for the model block

Postby jpfeifer » Mon Sep 21, 2015 6:52 am

Yes, that is possible. You can include any textfile using the include statement. For example:

Code: Select all
@# include "mymodel.mod"

would include the file named mymodel.mod. If the file is located in a different folder, you can use something along the lines of
Code: Select all
@# include "../a_different_folder/mymodel.mod"
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests