Request for help

Hello! I’m new, and construct a DSGE model to practice. However, it displays the warning:A parameter was used with a lead or a lag in the model block. I can’t find out the mistake. Could you help me?
The results are as follows:
Using 64-bit preprocessor
Starting Dynare (version 4.6.1).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
WARNING: A parameter was used with a lead or a lag in the model block
Found 22 equation(s).
Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 1).
Processing outputs …
done
Preprocessing completed.

Randomize initial guess…

Residuals of the static equations:

Equation number 1 : NaN : 1
Equation number 2 : NaN : k
Equation number 3 : NaN : 3
Equation number 4 : NaN : 4
Equation number 5 : NaN : 5
Equation number 6 : NaN : mc
Equation number 7 : NaN : 7
Equation number 8 : NaN : la
Equation number 9 : NaN : m
Equation number 10 : NaN : p_star
Equation number 11 : NaN : x1
Equation number 12 : NaN : x2
Equation number 13 : NaN : p
Equation number 14 : NaN : pi
Equation number 15 : NaN : 15
Equation number 16 : NaN : s
Equation number 17 : NaN : y
Equation number 18 : NaN : 18
Equation number 19 : NaN : 19
Equation number 20 : NaN : 20
Equation number 21 : NaN : 21
Equation number 22 : NaN : 22

error print_info (line 32)
The steady state has NaNs or Inf.

error steady (line 102)
print_info(info,options_.noprint, options_);

error model.driver (line 339)
steady;

error dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;
model.mod (1.8 KB)

  1. You have
lambda_2+beta*((1-tau_k(+1))*r_k(+1)/c(+1)-lambda_2(+1)*(1-delta_k))=0;

where tau_k is a parameter.
2. You cannot provide initial values for m and s as being 0.
3. Are you sure you can fix m and p_m exogenously.

Thanks for your help! I’ll modify my code according to your opinions.