in the file selec_posterior_draws.m (both Dynare 4.1.2 and the unstable version)
- Code: Select all
switch nargin
case 1
info = 0;
case 2
if drsize>0
info=2;
MAX_mega_bytes = 10;% Should be an option...
else
info=1;
end
drawsize = drsize+npar*8/1048576;
otherwise
error(['selec_posterior_draws:: Unexpected number of input arguments!'])
end
Apparently, if nargin=2 and drsize=0, MAX_mega_bytes is not set. This results in the following error:
??? 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 1086
oo_ = compute_moments_varendo('posterior',options_,M_,oo_,var_list_);
Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});