diff --git a/matlab/cli/prior.m b/matlab/cli/prior.m index 1e1fb4985..efb446826 100644 --- a/matlab/cli/prior.m +++ b/matlab/cli/prior.m @@ -171,6 +171,7 @@ if ismember('moments(distribution)', varargin) % Prior simulations (BK). dr = tmp.pdraws{j,3}; oo__ = oo_; oo__.dr = dr; + Model=set_parameters_locally(Model,tmp.pdraws{j,1});% Needed to update the covariance matrix of the state innovations. oo__ = disp_th_moments(oo__.dr, [], Model, options_, oo__); FirstOrderMoments(:,iter) = oo__.mean; SecondOrderMoments(:,:,iter) = oo__.var;