Commit b5634d8e authored by Stéphane Adjemian's avatar Stéphane Adjemian Committed by Stéphane Adjemian (Scylla)
Browse files

Added input argument for plotting the prior densities. Added initialization of qz_criterium.

parent 60c2211c
function get_prior_info(info)
function get_prior_info(info,plt_flag)
% Computes various prior statistics.
%
% INPUTS
......@@ -30,12 +30,25 @@ global options_ M_ estim_params_ oo_
if ~nargin
info = 0;
plt_flag = 0;
end
if nargin==1
plt_flag = 1;
end
changed_qz_criterium_flag = 0;
if isempty(options_.qz_criterium)
options_.qz_criterium = 1+1e-9;
changed_qz_criterium_flag = 1;
end
M_.dname = M_.fname;
[xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_);
plot_priors(bayestopt_,M_,options_);
if plt_flag
plot_priors(bayestopt_,M_,options_);
end
PriorNames = { 'Beta' , 'Gamma' , 'Gaussian' , 'Inverted Gamma' , 'Uniform' , 'Inverted Gamma -- 2' };
......@@ -156,6 +169,11 @@ if info==3% Prior simulations (2nd order moments).
oo_ = compute_moments_varendo('prior',options_,M_,oo_);
end
if changed_qz_criterium_flag
options_.qz_criterium = [];
end
function format_string = build_format_string(bayestopt,i)
format_string = ['%s & %s & %6.4f &'];
......
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