错误使用 print_info (line 32) One of the eigenvalues is close to 0/0 (the absolute value of numerator and denominator is smaller than 0.0000! If you believe that the model has a unique solution you can try to reduce the value of qz_zero_threshold

Hi, everyone. I met this error when I ran my process.
Please help me!!!
Thank you very very very very nuch.

This is my codes.
hjtd0430_my.mod (10.7 KB)

Please provide the file wentaishuj

Okay okay, This is the data. wentaishuj.mat (4.1 KB)

There are some parameters that are not set in that file like nu_ss and nv_ss.

nu_ss = 4.2856 ;
nv_ss = 0.9791;

The biggest issue is:

MODEL_DIAGNOSTICS: The following endogenous variables aren’t present at the current period in the model:
R

Just saw it two, R was declared as a predetermined variable. Why?
Other than that it shows that there are singularity problems. You can see that when you put model_diagnostics; before resid(1);

It presents as follow when I added model_diagnostics; and deleted predetermined_variables ku;.
MODEL_DIAGNOSTICS: The Jacobian of the static model is singular
MODEL_DIAGNOSTICS: there is 2 colinear relationships between the variables and the equations
Relation 1
Colinear variables:
cu
cr1
cr2
nu
nm
nv
nh_demand
nu_demand
nm_demand
nv_demand
wu
wr
ku
kr
ku_demand
kr_demand
invu
invr
yu
yu1
yu2
yr
yr1
yr2
Mu
Nr
y
Mu_demand
Nr_demand
c_y
qu
qr
Pu
Pr
P
mu
mr1
mr2
mu_supply
mr1_supply
mr2_supply
lambdau
lambdar1
lambdar2
Relation 2
Colinear variables:
qu
qr
Pu
Pr
P
mu
mr1
mr2
mu_supply
mr1_supply
mr2_supply
Relation 1
Colinear equations
4 16 17 18 35 36 37 38
Relation 2
Colinear equations
4 16 17 18 35 36 37 38
MODEL_DIAGNOSTICS: The presence of a singularity problem typically indicates that there is one
MODEL_DIAGNOSTICS: redundant equation entered in the model block, while another non-redundant equation
MODEL_DIAGNOSTICS: is missing. The problem often derives from Walras Law.

Yes yes, I deleted it.
Then the error is same.

Please always provide the most recent version of the code.

Okay okay. I ran out it. Thank you very very much.

Hi. I met this problem when I ran.
ERROR: hjtd0506_exp.mod: line 337, col 23: character unrecognized by lexer

I check again and again. But don’t find. Help me please.

hjtd0506_exp.mod (13.0 KB)
wentaishuj2.mat (4.8 KB)

Hi, everyone. I met this problem when I ran.
ERROR: hjtd0506_exp.mod: line 337, col 23: character unrecognized by lexer

I check again and again. But don’t find. Help me please.

hjtd0506_exp.mod (13.0 KB)
wentaishuj2.mat (4.8 KB)

Hi wangxuem08,

there are multiple issues in your code.

In line 337, which is also what Dynare tells you where an issue is, there is £© instead of a closing bracket.

In line 417 there is a closing bracket missing.

In line 378 I think you mean cr2 = log(cr2_ss); and not cr2 = log(r2_ss);

After fixing these, the real issue starts to show though. You get -Inf as an initial value since your steady state inflation is 1 but you wrongly set pi in the initial state to pi = log(pi_ss);, which gives 0. The problem then is that you wrongly have log(pi) in the code in equation 40.

Never do the exp() transition before you have a working code. I suggest you remove all the exp() and log() (because you sometimes have log(exp()) and focus on making your code work. Afterwards, you can think about adding exp() again.

Best

Okay okay. Thank you