? Subscript indices must either be real positive integers

Dear all:
When I run the rosenestimateBayes.mod------which is a example in dynare, it
is coming up with the follow errors:

??? Subscript indices must either be real positive integers or logicals.

Error in ==> posterior_moments at 60
post_deciles = xx(round(0.1*number_of_draws) …

Error in ==> GetPosteriorParametersStatistics at 84
post_mean, post_median, post_var, hpd_interval, post_deciles, …

Error in ==> dynare_estimation_1 at 949
oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bayestopt_, oo_);

Error in ==> dynare_estimation at 70

Error in ==> rosenestimateBayes at 184

Error in ==> dynare at 120
evalin(‘base’,fname) ;

I am very confused. I really hope some one can help me to solve this problem.

the rosenestimateBayes.mod file attachment as follows:
rosenestimateBayes.mod.rar (15.4 KB)

You are using only 1 draw. Increase mh_replic to at least 1000.

Dear professor pfeifer:
Thank you very much! Under the guidance of your wise,I have solved this problem.we feel honored and lucky that we have a excellent teacher ------ professor pfeifer!