From a50e65fb6cb192f953bce1312f30224912c16901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr> Date: Wed, 6 Jun 2012 12:27:46 +0200 Subject: [PATCH] Rename set_stationary_variables_list to get_variables_list This function has nothing to do with stationary variables now that unit_root_vars has been removed. Closes: #218 --- ...ated_theoretical_conditional_variance_decomposition.m | 2 +- matlab/dsge_simulated_theoretical_correlation.m | 2 +- matlab/dsge_simulated_theoretical_covariance.m | 2 +- .../dsge_simulated_theoretical_variance_decomposition.m | 2 +- ..._stationary_variables_list.m => get_variables_list.m} | 9 ++++----- matlab/posterior_analysis.m | 2 +- matlab/prior_analysis.m | 2 +- 7 files changed, 10 insertions(+), 11 deletions(-) rename matlab/{set_stationary_variables_list.m => get_variables_list.m} (83%) diff --git a/matlab/dsge_simulated_theoretical_conditional_variance_decomposition.m b/matlab/dsge_simulated_theoretical_conditional_variance_decomposition.m index 60c9aaf9f5..4cc3625d4a 100644 --- a/matlab/dsge_simulated_theoretical_conditional_variance_decomposition.m +++ b/matlab/dsge_simulated_theoretical_conditional_variance_decomposition.m @@ -54,7 +54,7 @@ if ~posterior end options_.varlist = options_.prior_analysis_endo_var_list; end -[ivar,vartan ] = set_stationary_variables_list(options_, M_); +[ivar,vartan ] = get_variables_list(options_, M_); if ~posterior if exist('temp','var') options_.varlist = temp; diff --git a/matlab/dsge_simulated_theoretical_correlation.m b/matlab/dsge_simulated_theoretical_correlation.m index d8a81a149c..61325b5770 100644 --- a/matlab/dsge_simulated_theoretical_correlation.m +++ b/matlab/dsge_simulated_theoretical_correlation.m @@ -55,7 +55,7 @@ if ~posterior end options_.varlist = options_.prior_analysis_endo_var_list; end -[ivar,vartan, options_] = set_stationary_variables_list(options_, M_); +[ivar,vartan, options_] = get_variables_list(options_, M_); if ~posterior if exist('temp','var') options_.varlist = temp; diff --git a/matlab/dsge_simulated_theoretical_covariance.m b/matlab/dsge_simulated_theoretical_covariance.m index 1231b8b586..e8ac8bb6da 100644 --- a/matlab/dsge_simulated_theoretical_covariance.m +++ b/matlab/dsge_simulated_theoretical_covariance.m @@ -55,7 +55,7 @@ if ~posterior end options_.varlist = options_.prior_analysis_endo_var_list; end -[ivar,vartan] = set_stationary_variables_list(options_,M_); +[ivar,vartan] = get_variables_list(options_,M_); if ~posterior if exist('temp','var') options_.varlist = temp; diff --git a/matlab/dsge_simulated_theoretical_variance_decomposition.m b/matlab/dsge_simulated_theoretical_variance_decomposition.m index a4008b31ab..b70db60c97 100644 --- a/matlab/dsge_simulated_theoretical_variance_decomposition.m +++ b/matlab/dsge_simulated_theoretical_variance_decomposition.m @@ -56,7 +56,7 @@ if ~posterior end options_.varlist = options_.prior_analysis_endo_var_list; end -[ivar,vartan,options_] = set_stationary_variables_list(options_,M_); +[ivar,vartan,options_] = get_variables_list(options_,M_); if ~posterior if exist('temp','var') options_.varlist = temp; diff --git a/matlab/set_stationary_variables_list.m b/matlab/get_variables_list.m similarity index 83% rename from matlab/set_stationary_variables_list.m rename to matlab/get_variables_list.m index 33b4472428..853b1169f9 100644 --- a/matlab/set_stationary_variables_list.m +++ b/matlab/get_variables_list.m @@ -1,13 +1,12 @@ -function [ivar,vartan,options_] = set_stationary_variables_list(options_,M_) -% This function builds a vector of indices targeting to the stationary -% variables in varlist. +function [ivar,vartan,options_] = get_variables_list(options_,M_) +% This function builds a vector of indices in varlist or varobs. % % INPUTS % o options_ [structure] Describes global options. % o M_ [structure] Describes the model. % OUTPUTS % o ivar [integer] nvar*1 vector of indices (nvar is the number -% of stationary variables). +% of variables). % o vartan [char] array of characters (with nvar rows). % o options_ [structure] Describes global options. % @@ -17,7 +16,7 @@ function [ivar,vartan,options_] = set_stationary_variables_list(options_,M_) % SPECIAL REQUIREMENTS % None. -% Copyright (C) 2007-2011 Dynare Team +% Copyright (C) 2007-2012 Dynare Team % % This file is part of Dynare. % diff --git a/matlab/posterior_analysis.m b/matlab/posterior_analysis.m index 37e43ba1f2..50fe1ca88c 100644 --- a/matlab/posterior_analysis.m +++ b/matlab/posterior_analysis.m @@ -33,7 +33,7 @@ switch info case {4,5} oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_); case 6 - [ivar,vartan] = set_stationary_variables_list(options_,M_); + [ivar,vartan] = get_variables_list(options_,M_); nvar = length(ivar); oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_,nvar,vartan); otherwise diff --git a/matlab/prior_analysis.m b/matlab/prior_analysis.m index 63e4a678d7..e3113c6b15 100644 --- a/matlab/prior_analysis.m +++ b/matlab/prior_analysis.m @@ -34,7 +34,7 @@ switch info case {4,5} oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_); case 6 - [ivar,vartan] = set_stationary_variables_list(options_,M_); + [ivar,vartan] = get_variables_list(options_,M_); nvar = length(ivar); oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_,nvar,vartan); otherwise -- GitLab