Hello, I encountered a problem in the process of Bayesian estimation. The error is as follows.

Using 64-bit preprocessor

Starting Dynare (version 4.5.7).

Starting preprocessing of the model file …

ERROR: hui.mod: line 90, cols 16-17: syntax error, unexpected FLOAT_NUMBER, expecting ‘.’

However, I modified my code according to his prompt, which did not work.

This is my code：

emtimated_params;

gammap,beta_pdf,0.47,0.1;

h,beta_pdf,0.49,0.1;

rho_a,beta_pdf,0.91,0.1;

rho_b,beta_pdf,0.96,0.1;

rho_j,beta_pdf,0.77,0.1;

rho_h,beta_pdf,0.98,0.1;

phi,gamma_pdf,0.47,0.1;

kappa,gamma_pdf,3.99,1.5;

kai,gamma_pdf,0.99,0.1;

rho_pi,gamma_pdf,1.59,0.1;

rho_y,gamma_pdf,0.06,0.1;

stderr eps_a,inv_gamma_pdf,0.02,inf;

stderr eps_b,inv_gamma_pdf,0.19,inf;

stderr eps_j,inv_gamma_pdf,0.09,inf;

stderr eps_h,inv_gamma_pdf,0.14,inf;

stderr eps_r,inv_gamma_pdf,0.04,inf;

end;

Thanks!

Please provide the full code.

Thank you very much for your help, Prof. Pfeifer.I gave my complete code below.

It’s

```
estimated_params
```

not

```
emtimated_params
```

Thank you very much. I revised what you said and found that there was something wrong with my data. I need to reprocess my data.

That signals an error during plotting. Did you maybe close a figure while it was still being created?

You’re right. I closed a graph while it was still being created. The current error information is my initial value. I am trying to replicate a paper，data and models is right, but Bayesian estimation is still not good. I have added estimated_params_init and set prior_trunc=0,it doesn’t work .I also read the previous Q & A, but I didn’t find a very effective solution.I want to know how to modify it to work.Thank you very much ！

Error in computing likelihood for initial parameter values

ESTIMATION_CHECKS: There was an error in computing the likelihood for initial parameter values.

ESTIMATION_CHECKS: If this is not a problem with the setting of options (check the error message below),

ESTIMATION_CHECKS: you should try using the calibrated version of the model as starting values. To do

ESTIMATION_CHECKS: this, add an empty estimated_params_init-block with use_calibration option immediately before the estimation

ESTIMATION_CHECKS: command (and after the estimated_params-block so that it does not get overwritten):

error in print_info (line 42)

Blanchard Kahn conditions are not satisfied: no stable equilibrium

error in print_info (line 42)

error([‘Blanchard Kahn conditions are not satisfied: no

stable’ …

error in initial_estimation_checks (line 175)

print_info(info, DynareOptions.noprint, DynareOptions)

error in dynare_estimation_1 (line 165)

oo_ =

initial_estimation_checks(objective_function,xparam1,dataset_,dataset_info,M_,estim_params_,options_,bayestopt_,bounds,oo_);

error in dynare_estimation (line 105)

dynare_estimation_1(var_list,dname);

error in hong (line 484)

oo_recursive_=dynare_estimation(var_list_);

error in dynare (line 235)

evalin(‘base’,fname) ;

hong.mod (4.1 KB)

hong_datafile.xlsx (16.8 KB)

If your model has a unit root, you need to set `diffuse_filter`

in estimation.

It really works. Thank you very much for your help！