From 1339987af5d0842861ae0d509bfcf052971b9b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Mon, 9 Sep 2013 14:07:08 +0200 Subject: [PATCH] Removed n_varobs. --- matlab/dynare_estimation_init.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index 148f96321..a65a24270 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -124,9 +124,6 @@ else M_.dname = dname; end -% Set the number of observed variables. -n_varobs = length(options_.varobs); - % Set priors over the estimated parameters. if ~isempty(estim_params_) [xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_); @@ -205,7 +202,7 @@ else% Yes! bayestopt_.trend_coeff = {}; trend_coeffs = options_.trend_coeffs; nt = length(trend_coeffs); - for i=1:n_varobs + for i=1:options_.number_of_observed_variables if i > length(trend_coeffs) bayestopt_.trend_coeff{i} = '0'; else @@ -232,7 +229,7 @@ end % Setting resticted state space (observed + predetermined variables) var_obs_index = []; k1 = []; -for i=1:n_varobs +for i=1:options_.number_of_observed_variables var_obs_index = [var_obs_index; strmatch(options_.varobs{i},M_.endo_names(dr.order_var,:),'exact')]; k1 = [k1; strmatch(options_.varobs{i},M_.endo_names, 'exact')]; end