moments_varendo

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

Postby fabiac » Mon Jul 05, 2010 7:28 pm

Hi there,

I've run a bayesian estimation and everything went well (bayesian irfs, mode computation, etc). But when I include the option moments_varendo in the estimation command, I get the error message (in both versions 4.1.1 and 4.1.2):

??? Undefined function or variable "MAX_mega_bytes".

Error in ==> selec_posterior_draws at 101
if SampleSize*drawsize <= MAX_mega_bytes% The posterior draws are saved
in one file.

Error in ==> posterior_analysis at 31
SampleAddress = selec_posterior_draws(SampleSize,drsize);

Error in ==> compute_moments_varendo at 64
oo_ =
posterior_analysis('variance',var_list_(i,:),var_list_(j,:),[],options_,M_,oo_);

Error in ==> dynare_estimation_1 at 1077
oo_ = compute_moments_varendo('posterior',options_,M_,oo_,var_list_);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> brasil_estimacao at 2242
dynare_estimation(var_list_);

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

Can anyone please help? Thanks, Fabia
fabiac
 
Posts: 23
Joined: Sun Jun 27, 2010 3:35 pm

Re: moments_varendo

Postby SébastienVillemot » Thu Aug 19, 2010 1:38 pm

Thanks for reporting this bug. It is now fixed in the unstable version of Dynare, and will be incorporated in the next release.

As a quick fix, you can for the moment edit yourself the file matlab/selec_posterior_draws.m, and move line 56 to line 54 (before the "if")

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: moments_varendo

Postby fabiac » Mon Aug 23, 2010 5:16 pm

Great! Thanks a lot!
fabiac
 
Posts: 23
Joined: Sun Jun 27, 2010 3:35 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests