I run .mod under Dynare 4.0.4,have some difficulties to get the results?
the matlab show in the following:
??? Reference to non-existent field ‘datenum’.
Error in ==> get_date_of_a_file at 22
d1 = info.datenum;
Error in ==> check_posterior_analysis_data at 31
mhdate = get_date_of_a_file(mhname);
Error in ==> posterior_analysis at 20
info = check_posterior_analysis_data(type,M_);
Error in ==> compute_moments_varendo at 41
oo_ = posterior_analysis(‘variance’,var_list_(i,:),var_list_(j,:),],options_,M_,oo_);
Error in ==> dynare_estimation_1 at 959
oo_ = compute_moments_varendo(options_,M_,oo_,var_list_);
Error in ==> dynare_estimation at 62
Error in ==> bbgg1 at 332
Error in ==> dynare at 102
how to solve it?
I try many times,but fails,why?
anyone can help me?
bbgg1.mod (3.89 KB)
try1.xls (16.5 KB)
the excel file you posted has apparently a problem with the format of numbers, I changed the font to “Arial” and it works now (see the attached files)…
Plus you need to specify the following options:
xls_sheet=Sheet1, for the name of the sheet containing the data
xls_range=A1:D45, for the range of the data
try1.xls (11 KB)
bbgg1.mod (4.04 KB)
Thank you for your sincerely help!
but,I can get the moments varendo results,could you help me further?
you cannot get them from a wrong mode computation. By running your code, I see that the optimization doesn’t converge. I suggest you to add a block "estimated_params_init;’ in order to assign starting values to the parameters to be estimated (Note that by default, dynare takes the prior mean for the initialization of the optimization process)
Hope this helps
Thank you for your reply!
I will try !
I have find the fault in code!
but this code is runing for long time.
Do you have some mehtod to reduce its runing time?
bbgg1.mod (3.88 KB)