??? Subscript indices must either be real positive integers

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

??? Subscript indices must either be real positive integers

Postby yy1985 » Thu Mar 06, 2014 5:55 am

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
dynare_estimation_1(var_list,dname);

Error in ==> rosenestimateBayes at 184
dynare_estimation(var_list_);

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

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

the rosenestimateBayes.mod file attachment as follows:
Attachments
rosenestimateBayes.mod.rar
(15.4 KiB) Downloaded 98 times
yy1985
 
Posts: 27
Joined: Thu Feb 13, 2014 2:56 am

Re: ??? Subscript indices must either be real positive integ

Postby jpfeifer » Thu Mar 06, 2014 10:35 am

You are using only 1 draw. Increase mh_replic to at least 1000.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: ??? Subscript indices must either be real positive integ

Postby yy1985 » Thu Mar 06, 2014 2:05 pm

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!
yun
2014-3-6
yy1985
 
Posts: 27
Joined: Thu Feb 13, 2014 2:56 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests