Steady state and model value inconsistency

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.

Steady state and model value inconsistency

Postby poris » Thu Jun 11, 2015 4:01 pm

Hi

I have a problem in solving the residuals of the model equations.
Here is my equation, calvo pricing, for example,

p_x^(1-v)=d*(p_x(-1)*pistar)^(1-v)+(1-d)*(p_xt^(1-v));

exist residual.

But the value of both right and left side are the same when in the part of given initial values.
I test in the .m file to verify it.

.................
t1= p_x^(1-v)
t2=d*(p_x(-1)*pistar)^(1-v)+(1-d)*(p_xt^(1-v))

t2 is equal to t1!!
How could this happen? I'm sure i didn't redefine the variable's value.
Is there any mistake will cause this kind of inconsistency?
Last edited by poris on Sat Jun 13, 2015 3:07 am, edited 2 times in total.
poris
 
Posts: 1
Joined: Thu Jun 11, 2015 3:39 pm

Re: Steady state and model value inconsistency

Postby jpfeifer » Fri Jun 12, 2015 7:49 am

What exactly are you doing? Are you talking about the residuals after running
Code: Select all
steady;

If yes, then the problem comes from a different equation. As Dynare tries to solve a simultaneous equation system, the values provided in initval are only the starting values. Different values are tried later during steady state finding. To see the residuals of the equations given your initial values, use resid(1) before steady, i.e.
Code: Select all
initval;
...
end;
resid(1);
steady;
------------
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