2019-02-22 17:58:24 +01:00
|
|
|
function print(pacexpectationmodelname, eqname, withcalibration)
|
2018-10-14 16:48:29 +02:00
|
|
|
|
|
|
|
% Prints the exansion of the PAC_EXPECTATION term in files.
|
|
|
|
%
|
|
|
|
% INPUTS
|
2019-02-22 17:58:24 +01:00
|
|
|
% - pacexpectationmodelname [string] Name of the expectation model.
|
|
|
|
% - eqname [string] Name of the equation.
|
2018-10-14 16:48:29 +02:00
|
|
|
% - withcalibration [logical] Prints calibration if true.
|
|
|
|
%
|
|
|
|
% OUTPUTS
|
|
|
|
% None
|
|
|
|
%
|
|
|
|
% REMARKS
|
|
|
|
% The routine creates two text files
|
|
|
|
%
|
|
|
|
% - {pacexpectationmodelname}-parameters.inc which contains the declaration of the parameters specific to the expectation model kind term.
|
|
|
|
% - {pacexpectationmodelname}-expression.inc which contains the expanded version of the expectation model kind term.
|
|
|
|
%
|
|
|
|
% These routines are saved under the {modfilename}/model/pacexpectationmodel subfolder, and can be
|
|
|
|
% used after in another mod file (ie included with the macro directive @#include).
|
|
|
|
|
2022-04-13 13:15:19 +02:00
|
|
|
% Copyright © 2018-2019 Dynare Team
|
2018-10-14 16:48:29 +02:00
|
|
|
%
|
|
|
|
% This file is part of Dynare.
|
|
|
|
%
|
|
|
|
% Dynare is free software: you can redistribute it and/or modify
|
|
|
|
% it under the terms of the GNU General Public License as published by
|
|
|
|
% the Free Software Foundation, either version 3 of the License, or
|
|
|
|
% (at your option) any later version.
|
|
|
|
%
|
|
|
|
% Dynare is distributed in the hope that it will be useful,
|
|
|
|
% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
% GNU General Public License for more details.
|
|
|
|
%
|
|
|
|
% You should have received a copy of the GNU General Public License
|
2021-06-09 17:33:48 +02:00
|
|
|
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
2018-10-14 16:48:29 +02:00
|
|
|
|
2019-02-22 17:58:24 +01:00
|
|
|
if nargin<3
|
2018-10-14 16:48:29 +02:00
|
|
|
% Print calibration by default.
|
|
|
|
withcalibration = true;
|
|
|
|
end
|
|
|
|
|
2019-03-14 11:04:10 +01:00
|
|
|
print_expectations(eqname, pacexpectationmodelname, 'pac', withcalibration);
|