Page 1 of 1

moments_varendo Errors!

PostPosted: Sat Jul 03, 2010 5:37 am
by maurice
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
dynare_estimation_1(var_list,varargin{:});

Error in ==> bbgg1 at 332
dynare_estimation(var_list_);

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

how to solve it?
I try many times,but fails,why?
anyone can help me?

Re: moments_varendo Errors!

PostPosted: Sat Jul 10, 2010 3:16 pm
by AssiaEzzeroug
Hi,

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

Best

Re: moments_varendo Errors!

PostPosted: Sun Jul 11, 2010 6:27 am
by maurice
Thank you for your sincerely help!
but,I can get the moments varendo results,could you help me further?

Re: moments_varendo Errors!

PostPosted: Tue Jul 13, 2010 1:00 pm
by AssiaEzzeroug
Hi,

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

Re: moments_varendo Errors!

PostPosted: Wed Jul 14, 2010 1:43 am
by maurice
Thank you for your reply!
I will try !

Re: moments_varendo Errors!

PostPosted: Wed Jul 14, 2010 3:44 am
by maurice
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?