paper11.mod (7.4 KB)

I have a lots of errors and warnings but I can’t put the finger on what’s wrong with this!

Please help me!

paper11.mod (7.4 KB)

I have a lots of errors and warnings but I can’t put the finger on what’s wrong with this!

Please help me!

Why are there Dollar signs in the file? They are not valid characters except in special contexts.

Yeah, sorry, I corrected them and rewrote the whole code because there were lots of things who didn’t work. Now I’m pretty sure about this new version except for the last few lines…nuovo1.mod (9.3 KB) Dataset.xlsx (12.1 KB)

Are you sure that you want complex values? For instance c2 is complex because wl_c is and so forth. Maybe you should try to find the cause of the problem. And in general, you should first make your model work with simulation before doing estimation.

Using diagnostics, there are still multiple problems:

MODEL_DIAGNOSTICS: The Jacobian of the dynamic model contains Inf or NaN. The problem arises from:

Derivative of Auxiliary Equation 2 with respect to Variable l (initial value of l: 0)

Derivative of Auxiliary Equation 2 with respect to lead of Variable l (initial value of l: 0)MODEL_DIAGNOSTICS: The problem most often occurs, because a variable with

MODEL_DIAGNOSTICS: exponent smaller than 1 has been initialized to 0. Taking the derivative

MODEL_DIAGNOSTICS: and evaluating it at the steady state then results in a division by 0.

MODEL_DIAGNOSTICS: If you are using model-local variables (# operator), check their values as well.MODEL_DIAGNOSTICS: The Jacobian of the dynamic model contains imaginary parts. The problem arises from:

Derivative of Auxiliary Equation 1 with respect to Variable z (initial value of z: 0)

Derivative of Auxiliary Equation 1 with respect to Variable c (initial value of c: 0)

Derivative of Auxiliary Equation 1 with respect to Variable i (initial value of i: 0)MODEL_DIAGNOSTICS: The problem most often occurs, because a variable with

MODEL_DIAGNOSTICS: exponent smaller than 1 has been initialized to 0. Taking the derivative

MODEL_DIAGNOSTICS: and evaluating it at the steady state then results in a division by 0.

MODEL_DIAGNOSTICS: If you are using model-local variables (# operator), check their values as well.

Hope this guides you in the right direction.

Best