Page 1 of 1

Productivity shocks and m-policy in a two-country model

PostPosted: Fri Oct 21, 2016 8:23 pm
by david.langer
Hi there

I've tried to run the code from the following paper:

http://www.dynare.org/wp-repo/dynarewp029.pdf

CAM22.mod
(3.32 KiB) Downloaded 101 times


Can anyone tell me what's wrong? I think there is no typo, i've just copied the code from the paper?

Error:

STEADY: numerical initial values or parameters incompatible with the following equations
7 8 22

Check whether your model in truly linear

Residuals of the static equations:

Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : NaN
Equation number 4 : NaN
Equation number 5 : 0
Equation number 6 : NaN
Equation number 7 : NaN
Equation number 8 : NaN
Equation number 9 : 0
Equation number 10 : NaN
Equation number 11 : 0
Equation number 12 : NaN
Equation number 13 : 0
Equation number 14 : 0
Equation number 15 : 0
Equation number 16 : 0
Equation number 17 : 0
Equation number 18 : NaN
Equation number 19 : NaN
Equation number 20 : NaN
Equation number 21 : 0
Equation number 22 : NaN
Equation number 23 : 0


Error using print_info (line 80)
The steady state contains NaN or Inf

Error in steady (line 92)
print_info(info,options_.noprint, options_);

Error in CAM22 (line 303)
steady;

Error in dynare (line 180)
evalin('base',fname) ;





Thanks in advance for your help!

Dave

Re: Productivity shocks and m-policy in a two-country model

PostPosted: Sat Oct 22, 2016 9:53 am
by jpfeifer
As Dynare warns
Warning: Some of the parameters have no value (rho) when using steady. If these parameters are not initialized in a
steadystate file or a steady_state_model-block, Dynare may not be able to solve the model...

you did not initialize
Code: Select all
rho

Re: Productivity shocks and m-policy in a two-country model

PostPosted: Sat Oct 22, 2016 10:27 am
by david.langer
Thank you very much! :oops: