Commit 83bb7940 authored by adjemian's avatar adjemian
Browse files

Update M_ with parameters at the posterior mode or mean.

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1230 ac1d8469-bf42-47a9-8791-bf33cf982152
parent f26e954b
......@@ -5,7 +5,7 @@ function xparam = get_posterior_parameters(type)
% o type [char] = 'mode' or 'mean'.
%
% OUTPUTS
% None.
% o xparam
%
%
% ALGORITHM
......@@ -63,9 +63,15 @@ for i=1:ncn
m = m+1;
end
FirstDeep = m;
for i=1:np
name1 = deblank(M_.param_names(estim_params_.param_vals(i,1),:));
xparam(m) = eval(['oo_.posterior_' type '.parameters.' name1]);
assignin('base',name1,xparam(m));
assignin('base',name1,xparam(m));% Useless with version 4 (except maybe for users)
m = m+1;
end
if np
M_.params(estim_params_.param_vals(:,1)) = xparam1(FirstDeep:end);
end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment