moments_varendo Errors!

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.

moments_varendo Errors!

Postby maurice » Sat Jul 03, 2010 5:37 am

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?
Attachments
bbgg1.mod
mod
(3.89 KiB) Downloaded 87 times
try1.xls
data
(16.5 KiB) Downloaded 70 times
maurice
 
Posts: 13
Joined: Fri Jul 02, 2010 12:19 am

Re: moments_varendo Errors!

Postby AssiaEzzeroug » Sat Jul 10, 2010 3:16 pm

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
Attachments
try1.xls
(11 KiB) Downloaded 66 times
bbgg1.mod
(4.04 KiB) Downloaded 79 times
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: moments_varendo Errors!

Postby maurice » Sun Jul 11, 2010 6:27 am

Thank you for your sincerely help!
but,I can get the moments varendo results,could you help me further?
maurice
 
Posts: 13
Joined: Fri Jul 02, 2010 12:19 am

Re: moments_varendo Errors!

Postby AssiaEzzeroug » Tue Jul 13, 2010 1:00 pm

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
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: moments_varendo Errors!

Postby maurice » Wed Jul 14, 2010 1:43 am

Thank you for your reply!
I will try !
maurice
 
Posts: 13
Joined: Fri Jul 02, 2010 12:19 am

Re: moments_varendo Errors!

Postby maurice » Wed Jul 14, 2010 3:44 am

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?
Attachments
bbgg1.mod
(3.88 KiB) Downloaded 86 times
maurice
 
Posts: 13
Joined: Fri Jul 02, 2010 12:19 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests