Non-Linear estimation - Guide/example code


Dear all,

I need to ask, if anybody can recommand me some guide/example code on nonlinear estimation in Dynare (my attempt to modify example code fs2000.mod lead to some error, with I don’t understand).

Kind Regards
Jan Žemlička
Faculty of Economics and Public Administration;
University of Economics, Prague


Please see


Dear Professor,

I tried to run all this test models, but non of them runs correnctly… For example ‘dsge_base2.mod’ gave me this error (attached as Example.mod). I also tryed to modify estimation of this model ( using example from your link, but dynare had returned similar error. (5.4 KB)
Example.mod (5.7 KB)

dynare Example.mod

Configuring Dynare …
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Using 64-bit preprocessor
Starting Dynare (version 4.5.6).
Starting preprocessing of the model file …
Found 6 equation(s).
Evaluating expressions…done
Computing static model derivatives:

  • order 1
    Computing dynamic model derivatives:
  • order 1
    Processing outputs …
    Preprocessing completed.

Residuals of the static equations:

Equation number 1 : NaN
Equation number 2 : NaN
Equation number 3 : NaN
Equation number 4 : NaN
Equation number 5 : NaN
Equation number 6 : NaN

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

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

Error in Example (line 143)

Error in dynare (line 235)
evalin(‘base’,fname) ;