dynare/matlab/+var_expectation/print.m

44 lines
1.7 KiB
Matlab

function print(varexpectationmodelname, withcalibration)
% Prints the exansion of the VAR_EXPECTATION term in files.
%
% INPUTS
% - varepxpectationmodelname [string] Name of the expectation model.
% - withcalibration [logical] Prints calibration if true.
%
% OUTPUTS
% None
%
% REMARKS
% The routine creates two text files
%
% - {varexpectationmodelname}-parameters.inc which contains the declaration of the parameters specific to the expectation model kind term.
% - {varexpectationmodelname}-expression.inc which contains the expanded version of the expectation model kind term.
%
% These routines are saved under the {modfilename}/model/varexpectationmodel subfolder, and can be used
% after in another mod file (ie included with the macro directive @#include). A matlab routine is also
% created for evaluating (dseries) the var-expectations.
% Copyright © 2018-2021 Dynare Team
%
% 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
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
if nargin<2
% Print calibration by default.
withcalibration = true;
end
print_expectations('fake', varexpectationmodelname, 'var', withcalibration);