Error: 'prior_dist_names' undefined near line 360 column 105

I’m getting the below error (files attached);

error: ‘prior_dist_names’ undefined near line 360 column 105>

sl_gdp_est_4.mod (2.0 KB)data_sl.csv (605 Bytes)

Pls advise.

Please provide the full error message and which Dynare version you have been using. I could not replicate your problem.

Final value of minus the log posterior (or likelihood):182.817644 error: 'prior_dist_names' undefined near line 360 column 105

Im using Dynare 4.6.3

The line 360

    oo_ = display_estimation_results_table(xparam1, stdh, M_, options_, estim_params_, bayestopt_, oo_, pnames, 'Posterior', 'posterior');

only has a pnames-variable

Hi Prof. Pfeifer,

I replaced the line with the one you have provided above in the dynare_estimation_1.m file but now I’m getting below error. How to fix this?

error: ‘pnames’ undefined near line 360 column 105

For some reason your Dynare version is broken. You cannot simply add lines from a different version to files.

Reinstalling fixed it. Tnx