Possible to have two separate model blocks?

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.

Possible to have two separate model blocks?

Postby ajhubb » Sat May 30, 2015 11:23 pm

Is it possible to have two separate model blocks in a dynare .mod file?

Specifically, I have some equations that are non-linear and some that are linearized. I want to include the non-linear equations in one model block and have dynare log-linearize those. I also want to list my linearized equations in a separate model block and force dynare not to linearize those. The reason i would like to do this is that the model is fairly large and complicated to log-linearize by hand. However, I have derived a few equations from the model first order conditions that I do not want dynare to linearize again. Thanks for the help.

Example:
model;
//all nonlinear equations
exp(c)^-gamma=exp(lam);
...
end;

model(linear);
//all equations that are derived as linear
x=rho*x+e_x;
...
end;
ajhubb
 
Posts: 9
Joined: Fri Jan 09, 2015 6:17 am

Re: Possible to have two separate model blocks?

Postby jpfeifer » Sun May 31, 2015 11:00 am

The linearization of a linear equation is just the equation itself. Thus, put everything including the linear equations into one model block without the linear option. This will give you what you want.
------------
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: Google [Bot] and 9 guests