Fix bug introduced in d95154f.

kalman_mex
Stéphane Adjemian (Argos) 2023-11-07 13:05:58 +01:00
parent 79a655261b
commit 368a7e2478
Signed by: stepan
GPG Key ID: A6D44CB9C64CE77B
1 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,9 @@ try
end
end
end
if ~isempty(istar)
RHS = strrep(RHS, sprintf('pac_target_nonstationary(model_name = %s)', ispac.name), sprintf('%s(-1)', M_.endo_names{M_.pac.(ispac.name).ec.vars(M_.pac.(ispac.name).ec.istarget)}));
end
% Print equation for unrolled PAC/VAR-expectation and update
% list of parameters and endogenous variables (if any).
if ~isempty(rhs)