Notation Issues

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.

Notation Issues

Postby petros_varth » Sat Feb 26, 2011 9:26 pm

Hi All,

I have two questions:

1) I introduce a large equation in the block model;....end;.How can i break the large equation in two or three lines.

Say k=(1-delta)*k(-1)... ????

2)I want to introduce a model in exp-logs.So i denote the variables

var n;

parameters eta;

and the n^(eta) i introduce it as eta*exp(n)

Should i repeat n in order to Dynare understand that n is log thus eta*exp(nn) ???


Thanks in advance,

Petros
petros_varth
 
Posts: 45
Joined: Wed Sep 30, 2009 5:35 pm

Re: Notation Issues

Postby jpfeifer » Sun Feb 27, 2011 8:38 am

Hi,

1) Dynare takes everything that is not separated by a semicolon as one line. So you can just wrap around without using the Matlab "...";. Empty spaces are simply ignored. However, there may be problems if you use tabulators or other special characters to indent the lines. For example:
Code: Select all
k=(1-delta)*k(-1)
      +i;


2) What you do is perform a variable substitution, i.e. you replace all variables x with exp(x), but you do not log-linearize yourself. Hence, n_original^(eta) becomes exp(n)^eta, because in this way, n is implicitly defined as log(n_original) and thus n_original^(eta)=exp(n)^eta. See other forum posts like e.g. http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=3013. This also means you do not have to tell Dynare that you performed a substitution.
------------
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

Re: Notation Issues

Postby petros_varth » Sun Feb 27, 2011 3:25 pm

jpfeifer wrote:Hi,

1) Dynare takes everything that is not separated by a semicolon as one line. So you can just wrap around without using the Matlab "...";. Empty spaces are simply ignored. However, there may be problems if you use tabulators or other special characters to indent the lines. For example:
Code: Select all
k=(1-delta)*k(-1)
      +i;


2) What you do is perform a variable substitution, i.e. you replace all variables x with exp(x), but you do not log-linearize yourself. Hence, n_original^(eta) becomes exp(n)^eta, because in this way, n is implicitly defined as log(n_original) and thus n_original^(eta)=exp(n)^eta. See other forum posts like e.g. http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=3013. This also means you do not have to tell Dynare that you performed a substitution.




Many thanks jpfeifer, this was very useful.

Petros
petros_varth
 
Posts: 45
Joined: Wed Sep 30, 2009 5:35 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests