Skip to content
Snippets Groups Projects
Commit 4dbbba41 authored by Marco Ratto's avatar Marco Ratto
Browse files

Fixed for new treatment of auxiliary variables w.r.t. dynare version 4.1.

parent d0d04065
No related branches found
No related tags found
No related merge requests found
...@@ -96,15 +96,10 @@ if opt_gsa.load_ident_files==0, ...@@ -96,15 +96,10 @@ if opt_gsa.load_ident_files==0,
npred = oo_.dr.npred; npred = oo_.dr.npred;
iv = (1:endo_nbr)'; iv = (1:endo_nbr)';
ic = [ nstatic+(1:npred) endo_nbr+(1:size(oo_.dr.ghx,2)-npred) ]'; ic = [ nstatic+(1:npred) endo_nbr+(1:size(oo_.dr.ghx,2)-npred) ]';
aux = oo_.dr.transition_auxiliary_variables;
k = find(aux(:,2) > npred);
aux(:,2) = aux(:,2) + nstatic;
aux(k,2) = aux(k,2) + oo_.dr.nfwrd;
dr.ghx = T(:, [1:(nc1-M_.exo_nbr)],1); dr.ghx = T(:, [1:(nc1-M_.exo_nbr)],1);
dr.ghu = T(:, [(nc1-M_.exo_nbr+1):end], 1); dr.ghu = T(:, [(nc1-M_.exo_nbr+1):end], 1);
[Aa,Bb] = kalman_transition_matrix(dr, ... [Aa,Bb] = kalman_transition_matrix(dr,iv,ic,M_.exo_nbr);
iv, ic, aux, M_.exo_nbr);
% bayestopt_.restrict_var_list, ... % bayestopt_.restrict_var_list, ...
% bayestopt_.restrict_columns, ... % bayestopt_.restrict_columns, ...
% bayestopt_.restrict_aux, M_.exo_nbr); % bayestopt_.restrict_aux, M_.exo_nbr);
...@@ -115,8 +110,7 @@ if opt_gsa.load_ident_files==0, ...@@ -115,8 +110,7 @@ if opt_gsa.load_ident_files==0,
for j=2:length(istable), for j=2:length(istable),
dr.ghx = T(:, [1:(nc1-M_.exo_nbr)],j); dr.ghx = T(:, [1:(nc1-M_.exo_nbr)],j);
dr.ghu = T(:, [(nc1-M_.exo_nbr+1):end], j); dr.ghu = T(:, [(nc1-M_.exo_nbr+1):end], j);
[Aa,Bb] = kalman_transition_matrix(dr, ... [Aa,Bb] = kalman_transition_matrix(dr, iv, ic, M_.exo_nbr);
iv, ic, aux, M_.exo_nbr);
% bayestopt_.restrict_var_list, ... % bayestopt_.restrict_var_list, ...
% bayestopt_.restrict_columns, ... % bayestopt_.restrict_columns, ...
% bayestopt_.restrict_aux, M_.exo_nbr); % bayestopt_.restrict_aux, M_.exo_nbr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment