From 4775bca07327e6fcfdbab677a01f01e45d058c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemia=20=28Scylla=29?= Date: Fri, 14 Dec 2018 17:37:35 +0100 Subject: [PATCH] Fixed ordering of the columns of the Companion matrix... For the level representation of the trend component model. --- matlab/get_companion_matrix.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/get_companion_matrix.m b/matlab/get_companion_matrix.m index 2a689faa5..a4f3e1aee 100644 --- a/matlab/get_companion_matrix.m +++ b/matlab/get_companion_matrix.m @@ -110,9 +110,9 @@ switch auxiliary_model_type % Reorder target_eqnums_in_auxiliary_model to ensure that the order of % the trend variables matches the order of the error correction % variables. - [~,reorder] = ismember(M_.trend_component.(auxiliary_model_name).lhs(target_eqnums_in_auxiliary_model), ... + [~, reorder] = ismember(M_.trend_component.(auxiliary_model_name).lhs(target_eqnums_in_auxiliary_model), ... M_.trend_component.(auxiliary_model_name).target_vars(M_.trend_component.(auxiliary_model_name).target_vars > 0)); - target_eqnums_in_auxiliary_model = target_eqnums_in_auxiliary_model(reorder); + target_eqnums_in_auxiliary_model(reorder) = target_eqnums_in_auxiliary_model; % Get the EC matrix (the EC term is assumend to be in t-1). % % TODO: Check that the EC term is the difference between the