GetPosteriorParametersStatistics.m and check_bounds_and_definiteness_estimation.m: cosmetic changes
parent
0249ea2116
commit
4d6d4953e7
|
@ -1,6 +1,6 @@
|
|||
function oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bayestopt_, oo_, pnames)
|
||||
|
||||
% This function prints and saves posterior estimates after the mcmc
|
||||
% oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bayestopt_, oo_, pnames)
|
||||
% This function prints and saves posterior estimates after the MCMC
|
||||
% (+updates of oo_ & TeX output).
|
||||
%
|
||||
% INPUTS
|
||||
|
@ -73,7 +73,7 @@ else
|
|||
if ~isfield(oo_,'MarginalDensity') || (issmc(options_) && ~isfield(oo_.MarginalDensity,'ModifiedHarmonicMean'))
|
||||
[~, oo_] = marginal_density(M_, options_, estim_params_, oo_, bayestopt_);
|
||||
end
|
||||
fprintf('Log data density is %f.', oo_.MarginalDensity.ModifiedHarmonicMean);
|
||||
fprintf('Log data density (Modified Harmonic Mean) is %f.', oo_.MarginalDensity.ModifiedHarmonicMean);
|
||||
% Set function handle for GetAllPosteriordraws
|
||||
getalldraws = @(i) GetAllPosteriorDraws(options_, M_.dname, M_.fname, i, FirstMhFile, FirstLine, TotalNumberOfMhFiles, NumberOfDraws, mh_nblck);
|
||||
end
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
function [fval,info,exit_flag,Q,H]=check_bounds_and_definiteness_estimation(xparam1, M_, estim_params_, bounds)
|
||||
% function [fval,info,exit_flag]=check_bounds_and_definiteness_estimation(xparam1, M_, estim_params_, bounds)
|
||||
% Checks whether parameter vector satisfies
|
||||
% [fval,info,exit_flag,Q,H]=check_bounds_and_definiteness_estimation(xparam1, M_, estim_params_, bounds)
|
||||
% Checks whether parameter vector satisfies bounds and the positive
|
||||
% definiteness of covariance matrices
|
||||
%
|
||||
% INPUTS
|
||||
% - xparam1 [double] n by 1 vector, estimated parameters.
|
||||
|
@ -15,7 +16,7 @@ function [fval,info,exit_flag,Q,H]=check_bounds_and_definiteness_estimation(xpar
|
|||
% - Q [matrix] Covariance matrix of structural shocks
|
||||
% - H [matrix] Covariance matrix of measurement errors
|
||||
|
||||
% Copyright © 2020-2021 Dynare Team
|
||||
% Copyright © 2020-2023 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
|
Loading…
Reference in New Issue