Undefined case in selec_posterior_draws.m

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.

Undefined case in selec_posterior_draws.m

Postby jpfeifer » Wed Aug 11, 2010 7:59 am

Hi,

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{:});
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Undefined case in selec_posterior_draws.m

Postby jpfeifer » Thu Aug 19, 2010 1:58 pm

The problem has now been dealt with in the unstable version of Dynare 4.1.2:
http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=2678&start=0
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests