Transforming variables in linear model

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.

Transforming variables in linear model

Postby francescosat » Wed Apr 09, 2014 2:17 pm

Hi again. I am trying to replicate a model. I do have log-linearized focs. My problem is that some of the variables are not expressed in log deviations but in a different way.

For example i need to put in the model the variable x as (xt-X/Y) instead of (xt-X/X) using capital letters for steady state.

As far I understood, if i write x on Dynare, he treats the variable as (xt-X/X) but I need (xt-X/Y).

What I am doing is to transform the variable in x*X/Y in this way i should obtain what I need but is not working...

ex:

model (linear)

x*X/Y+... //this should be the transformed variable, in order to obtain (xt-X/X)*X/Y = xt-X/Y
francescosat
 
Posts: 21
Joined: Wed Nov 21, 2012 10:56 pm

Re: Transforming variables in linear model

Postby jpfeifer » Thu Apr 10, 2014 4:53 pm

I don't get it. Please provide an explicit example. Be particularly precise what the variable is you are interested in and what parameters are (or functions thereof like steady state values).
------------
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: Transforming variables in linear model

Postby francescosat » Thu Apr 10, 2014 5:08 pm

ok, for example I have this log linearized foc (it's a 2 country model, variables f are foreign variables)

0 = (y-C/Y*c-I/Y*i-g)+Yf/Y*(yf-Cf/Yf*cf-If/Yf*if-gf); //capital letters are steady states


The paper I am studying says that all variables are expressed in percentage deviation from steady state but some are not. For example g=(Gt-G)/Y. For this reason I transformed the variable g in g*G/Y in dynare in this way:

0 = (y-C/Y*c-I/Y*i-g*G/Y)+Yf/Y*(yf-Cf/Yf*cf-If/Yf*if-gf*Gf/Yf);

In this way I should obtain the transformation I need but I am not sure Dynare accepts this.

More generally, there is a way to write a variable in the form: x=xt-X/Y (still using capital letter for steady state) in a linear model in dynare?
francescosat
 
Posts: 21
Joined: Wed Nov 21, 2012 10:56 pm

Re: Transforming variables in linear model

Postby jpfeifer » Fri Apr 11, 2014 12:19 pm

For Dynare, a variable is a variable, no matter how you define it. You can enter the first equation you wrote down with g defined as g=(Gt-G)/Y. Dynare only knows g and does not care what it means. It will solve the model for exactly this variable. If you want a different interpretation, you must redefine the variable accordingly.
------------
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