model in exp-logs

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.

model in exp-logs

Postby tomnilson40 » Tue May 21, 2013 9:17 am

Hi everyone,

I am trying to enter the model into Dynare by exp-logs method as it is mentioned in the Dynare manual, through "exp(repeatedvariable)" for each variable, and "repeating a letter for a variable means log of that variable" but Dynare gives error which basically saying that it does not recognize the repeated variable (say yy) as the log of the variable (y)! Is this a problem with the new version or there is something else wrong?!!

My model is in a log-linearized form and I would assume it should be entered into Dynare through the exp-logs method (starting with "model" for the model section) rather than linear model (starting with "model(linear)" for the model section ), is that right?!!

For example if the equation let say is x=y/T then the log-linearized form becomes x= y-T and I think I need to enter that into Dynare like exp(xx)= exp(yy)-exp(TT), am I right?

Cheers
tomnilson40
 
Posts: 26
Joined: Fri Aug 31, 2012 4:37 am

Re: model in exp-logs

Postby jpfeifer » Wed May 22, 2013 6:09 pm

No. You perform a variable substitution. By writing X=exp(x), the lowercase x is actually log(X) as exp(x)=exp(log(X))=X. Doing a standard linearization with respect to lowercase x is thus effective doing a log-linearization for uppercase X. So if you use lowercase x, you actually mean log(X).

x=y/T becomes exp(x)=exp(y)/exp(T). If you already linearize it yourself, there is no point in performing a variable substitution.

See also http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=2625
------------
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 8 guests