Adapted integration tests for 8e60ded.

time-shift
Stéphane Adjemian (Charybdis) 2019-02-28 16:23:04 +01:00
parent e75ca94a48
commit fd98e83d78
Signed by untrusted user who does not match committer: stepan
GPG Key ID: A6D44CB9C64CE77B
2 changed files with 8 additions and 2 deletions

View File

@ -281,7 +281,9 @@ if isequal(expectationmodelkind, 'pac-expectations') && growth_correction
lgrowth = expectationmodel.growth_lag;
otherwise
end
vgrowth = rewritegrowthvariable(vgrowth, lgrowth, M_);
if ismember(expectationmodel.growth_type, {'endogenous','exogenous'})
vgrowth = rewritegrowthvariable(vgrowth, lgrowth, M_);
end
fprintf(fid, '%s*%s', pgrowth, vgrowth);
fclose(fid);
fprintf('Growth neutrality correction is saved in %s.\n', filename);
@ -400,7 +402,9 @@ for i=1:maxlag
lgrowth = expectationmodel.growth_lag;
otherwise
end
vgrowth = rewritegrowthvariable(vgrowth, lgrowth, M_);
if ismember(expectationmodel.growth_type, {'endogenous','exogenous'})
vgrowth = rewritegrowthvariable(vgrowth, lgrowth, M_);
end
if parameter>=0
expression = sprintf('%s*%s+%s*%s', num2str(pgrowth, '%1.16f'), vgrowth, num2str(parameter, '%1.16f'), variable);
else

View File

@ -33,6 +33,8 @@ diff(x) = b_x_1*y(-2) + b_x_2*diff(x(-1)) + g*(1-b_x_2) + ex ;
[name='eq:pac']
diff(z) = e_c_m*(x(-1)-z(-1)) + c_z_1*diff(z(-1)) + c_z_2*diff(z(-2)) +
@#include "example/model/pac-expectations/eq0-pacman-growth-neutrality-correction.inc"
+
@#include "example/model/pac-expectations/eq0-pacman-expression.inc"
+ ez;