new help

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.

new help

Postby hamideconomy80 » Sun Oct 23, 2016 6:06 pm

hi

please see the model file that is attachment
the file is the simulation file in dynare
but in this file i have two models that i will run it
in fact i will know can it file run?
if it is possible to run, how changes does it need?
in general
in advance i want to know can i write a program when i run it
at first run in model 1 and show the results then run in model 2 and show the results
thanks a lot
Attachments
model.mod
(4.56 KiB) Downloaded 46 times
hamideconomy80
 
Posts: 16
Joined: Thu Nov 12, 2015 6:36 am

Re: new help

Postby jpfeifer » Mon Oct 24, 2016 9:21 am

You cannot sensibly have two different models in the same file. You either need to split them into two files are use the macro-processor to select the model to be executed. The proper way to execute two models after each other is to write two mod-files and then call them via a Matlab script.
------------
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 6 guests