Skip to content
Snippets Groups Projects
Commit 65ae97d3 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug.

For uniform priors use the prior mean when computing the prior
moments (prior mode is not defined).
parent 789f2125
Branches
Tags
No related merge requests found
......@@ -110,9 +110,9 @@ end
if ismember('moments', varargin) % Prior simulations (2nd order moments).
% Set estimated parameters to the prior mode...
xparam1 = BayesOptions.p5;
% ... Except for uniform priors!
% ... Except for uniform priors (use the prior mean)!
k = find(isnan(xparam1));
xparam1(k) = BayesOptions.p5(k);
xparam1(k) = BayesOptions.p1(k);
% Update vector of parameters and covariance matrices
Model = set_all_parameters(xparam1, EstimatedParams, Model);
% Check model.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment