Page 1 of 1

moments_varendo

PostPosted: Mon Jul 05, 2010 7:28 pm
by fabiac
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

Re: moments_varendo

PostPosted: Thu Aug 19, 2010 1:38 pm
by SébastienVillemot
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,

Re: moments_varendo

PostPosted: Mon Aug 23, 2010 5:16 pm
by fabiac
Great! Thanks a lot!