Page 1 of 1

Steady State Help

PostPosted: Wed Feb 15, 2017 1:04 am
by silvaslick
Hello!
I am trying to replicate a model by Anand and Prasad(2010) for a class project but I am struggling to compute the steady state values. I keep getting the following error and frankly, I am at a loss as what to do.

STEADY: The Jacobian contains Inf or NaN. The problem arises from:

STEADY: Derivative of Equation 8 with respect to Variable Ctf (initial value of Ctf: 2)
STEADY: Derivative of Equation 8 with respect to Variable Cts (initial value of Cts: 2)
STEADY: Derivative of Equation 8 with respect to Variable xst (initial value of xst: 0)
STEADY: Derivative of Equation 9 with respect to Variable xst (initial value of xst: 0)

STEADY: The problem most often occurs, because a variable with
STEADY: exponent smaller than 1 has been initialized to 0. Taking the derivative
STEADY: and evaluating it at the steady state then results in a division by 0.

Practically a new student at Dynare! Any help is deeply appreciated!

Thanks

diss3.mod
dynare code
(1.32 KiB) Downloaded 71 times

Re: Steady State Help

PostPosted: Wed Feb 15, 2017 7:54 am
by jpfeifer
Recheck both the model equations and the initval block:
1. In the initval block
Code: Select all
xst=(theta/theta-1)*mct;

the mct is not defined yet and there is a bracket missing as otherwise the bracket always evaluates to 0
2.
Code: Select all
Aft(+1)=rhoaf*Aft + epsxi;

has a problem with timing (it should be lagged by one period) and should be in logs. Currently the equations has steady state
Code: Select all
Aft=0
, but that
is incompatible with e.g.
Code: Select all
xft=phin*((yft)^(psi))*((Ctf)^(sigma))*((Aft)^(-1-psi));

where Aft must be 1

Re: Steady State Help

PostPosted: Sun Feb 19, 2017 1:48 am
by silvaslick
Thanks for the help. I made the aforementioned corrections yet I am still not able to calculate the steady state values. Is there anyway that can be bypassed on Dynare and still generate the required results? I am getting the following error:SOLVE: maxit has been reached




Residuals of the static equations:

Equation number 1 : 0.12723
Equation number 2 : 0.0096714
Equation number 3 : 0.14266
Equation number 4 : 0.22491
Equation number 5 : 0
Equation number 6 : 0.54044
Equation number 7 : 0.25168
Equation number 8 : 0.12782
Equation number 9 : -0.039531
Equation number 10 : 0
Equation number 11 : 1.8909
Equation number 12 : 0
Equation number 13 : 0
Equation number 14 : 0
Equation number 15 : 0


Error using print_info (line
74)
Impossible to find the steady
state. Either the model
doesn't have a steady state,
there are an infinity of
steady states, or the guess
values are too far from the
solution


I attached the file and the equations I am trying to replicate. Any assistance is deeply appreciated. I am in need of dire help! :cry:

Re: Steady State Help

PostPosted: Tue Feb 21, 2017 3:48 pm
by jpfeifer
One of the problems in your mod-file is that there is no unique steady state, making it impossible to use a solver the way you do. The first issue is the collinearity in the Taylor rule, see http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5860
I would strongly recommend computing the steady state analytically-