Writing the policy equation

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.

Writing the policy equation

Postby dynare2014 » Thu Jan 29, 2015 6:06 pm

Hello everyone!

I have some questions but I will only write the first one here:

1) My model is solved and I get all the impulse responses, however, I use the steady states value that I solved ( pi_ss =1, R_ss=1/beta, and I solved for Y_ss) in the monetary policy function in the model as following:

Code: Select all
(exp(R)/R_ss)=((exp(Y)/Y_ss)^rho_Y)*((exp(pi)/pi_ss)^rho_pi)*exp(v);

Recently, I found some codes that use the command "STEADY_STATE(variable)" instead of using the steady state value as following

Code: Select all
exp(R - STEADY_STATE(R)) = exp(rho_pi*(pi - STEADY_STATE(pi)) + rho_Y*(Y - STEADY_STATE(Y)) + ev);


When I use the second way, I do get impulse responses and the model is solved but when I run the command "model_diagnostic", the policy equation becomes colinear with almost all the variables.. is that a big problem?

One problem I also face with the second way is that when I try solving the model with second order approximations under stochastic shock I face some problem in finding the welfare loss function....

Is my first way of writing the policy function right? or that would be wrong to stick with it. Any suggestions?

Thanks alot for all the help guys!

Code: Select all
model_diagnostic: the Jacobian of the static model is singular
there is 1 colinear relationships between the variables and the equations
Colinear variables:
b_star 
C       
L       
lammbda
pn_omega
pd_omega
pf_omega
R       
w       
k       
Z       
Y       
Yf     
Yd     
Yx     
Yo     
pi     
pi_d   
pi_f   
s       
q       
pd_bar 
pf_bar 
n1     
n2     
j1     
j2     
Sd     
Colinear equations
    21

The presence of a singularity problem typically indicates that there is one
redundant equation entered in the model block, while another non-redundant equation
is missing. The problem often derives from Walras Law.
Total computing time : 0h00m05s
Note: 2 warning(s) encountered in the preprocessor
EDU>>
dynare2014
 
Posts: 21
Joined: Mon Dec 01, 2014 6:49 am

Re: Writing the policy equation

Postby jpfeifer » Thu Jan 29, 2015 6:40 pm

You cannot use the steady_state operator in this case. See the discussion at the bottom of http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5407
------------
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: Writing the policy equation

Postby dynare2014 » Thu Jan 29, 2015 11:27 pm

So I assume the way I have it written using R_ss, pi_ss, and Y_ss is the right way?
dynare2014
 
Posts: 21
Joined: Mon Dec 01, 2014 6:49 am

Re: Writing the policy equation

Postby jpfeifer » Fri Jan 30, 2015 6:16 am

In principle, yes. Just one additional note: If you are using estimation, you need to make sure that parameter dependencies are correctly taken into account via model-local variables or a steady state file.
------------
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 12 guests