Partial fix for #1837.

last-period-simul
Stéphane Adjemian (Ryûk) 2022-01-19 09:20:22 +01:00
parent 1edb8ba7ba
commit a08de9e661
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
8 changed files with 6 additions and 35 deletions

View File

@ -379,9 +379,9 @@ if isequal(expectationmodelkind, 'pac') && growth_correction
variable = sprintf('%s.lag(%u)', variable, -transformations{k,2});
elseif isequal(transformations{k,1}, 'diff')
if isempty(transformations{k,2})
variable = sprintf('%s.%s()', variable, transformations{k,1});
variable = sprintf('%s.diff()', variable);
else
variable = sprintf('%s(-%u).%s()', variable, transformations{k,2}, transformations{k,1});
variable = sprintf('%s.lag(%u).diff()', variable, transformations{k,2});
end
else
variable = sprintf('%s.%s()', variable, transformations{k});
@ -440,9 +440,9 @@ if isequal(expectationmodelkind, 'pac') && growth_correction
variable = sprintf('%s.lag(%u)', variable, -transformations{k,2});
elseif isequal(transformations{k,1}, 'diff')
if isempty(transformations{k,2})
variable = sprintf('%s.%s()', variable, transformations{k,1});
variable = sprintf('%s.diff()', variable);
else
variable = sprintf('%s(-%u).%s()', variable, transformations{k,2}, transformations{k,1});
variable = sprintf('%s.lag(%u).diff()', variable, transformations{k,2});
end
else
variable = sprintf('%s.%s()', variable, transformations{k});

@ -1 +1 @@
Subproject commit 8c528f4f9a15baf73c014e1c3e55bc13583ca09d
Subproject commit d149d3a76c7527608e55b7b73b6509dc3b4af097

View File

@ -531,6 +531,7 @@ ECB_MODFILES = \
pac/var-11e/example1.mod \
pac/var-12/example1.mod \
pac/var-12/example2.mod \
pac/var-12/example3.mod \
pac/var-12/example4.mod \
pac/var-12/example11.mod \
pac/var-12/example12.mod \

View File

@ -58,12 +58,6 @@ model;
end;
shocks;
var ex = 1.0;
var ey = 1.0;
var ez = 1.0;
end;
// Initialize the PAC model (build the Companion VAR representation for the auxiliary model).
pac.initialize('pacman');

View File

@ -39,12 +39,6 @@ model;
end;
shocks;
var ex = 1.0;
var ey = 1.0;
var ez = 1.0;
end;
// Initialize the PAC model (build the Companion VAR representation for the auxiliary model).
pac.initialize('pacman');

View File

@ -40,12 +40,6 @@ model;
end;
shocks;
var ex = 1.0;
var ey = 1.0;
var ez = 1.0;
end;
// Initialize the PAC model (build the Companion VAR representation for the auxiliary model).
pac.initialize('pacman');

View File

@ -39,12 +39,6 @@ model;
end;
shocks;
var ex = 1.0;
var ey = 1.0;
var ez = 1.0;
end;
// Initialize the PAC model (build the Companion VAR representation for the auxiliary model).
pac.initialize('pacman');

View File

@ -58,12 +58,6 @@ model;
end;
shocks;
var ex = 1.0;
var ey = 1.0;
var ez = 1.0;
end;
// Initialize the PAC model (build the Companion VAR representation for the auxiliary model).
pac.initialize('pacman');