2018-10-14 16:48:29 +02:00
|
|
|
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).
|
|
|
|
|
2019-02-22 17:58:24 +01:00
|
|
|
% Copyright (C) 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
|
|
|
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
if nargin<2
|
|
|
|
% Print calibration by default.
|
|
|
|
withcalibration = true;
|
|
|
|
end
|
|
|
|
|
2019-03-15 16:25:58 +01:00
|
|
|
print_expectations('fake', varexpectationmodelname, 'var', withcalibration);
|