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

Only set options_.varlist if necessary.

parent 471e0ff4
No related branches found
No related tags found
No related merge requests found
...@@ -53,15 +53,22 @@ hh = []; ...@@ -53,15 +53,22 @@ hh = [];
xparam1 = []; xparam1 = [];
if isempty(gsa_flag) if isempty(gsa_flag)
gsa_flag = 0; gsa_flag = false;
else else
% Decide if a DSGE or DSGE-VAR has to be estimated. % Decide if a DSGE or DSGE-VAR has to be estimated.
if ~isempty(strmatch('dsge_prior_weight',M_.param_names)) if ~isempty(strmatch('dsge_prior_weight',M_.param_names))
options_.dsge_var = 1; options_.dsge_var = 1;
end end
% Get the list of the endogenous variables for which posterior statistics wil be computed if isempty(var_list_)
var_list_ = check_list_of_variables(options_, M_, var_list_); var_list_ = check_list_of_variables(options_, M_, var_list_);
options_.varlist = var_list_; options_.varlist = var_list_;
end
if gsa_flag
% Get the list of the endogenous variables for which posterior statistics wil be computed.
options_.varlist = var_list_;
else
% This was done in dynare_estimation_1
end
end end
if options_.dsge_var && options_.presample~=0 if options_.dsge_var && options_.presample~=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment