Skip to content
Snippets Groups Projects
Verified Commit f29d9744 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

add copyright and fix spacing

parent 31d59d6b
Branches
Tags
No related merge requests found
Pipeline #719 failed
function di_perfect_foresight()
function read()
% function read()
% Read JSON and run perfect foresight solver
%
% INPUTS
% ds [dseries] data
% fitted_names_dict [cell] Nx2 or Nx3 cell array to be used in naming fitted
% values; first column is the equation tag,
% second column is the name of the
% associated fitted value, third column
% (if it exists) is the function name of
% the transformation to perform on the
% fitted value.
% eqtags [cellstr] names of equation tags to estimate. If empty,
% estimate all equations
%
% OUTPUTS
% ds [dseries] data updated with fitted values
%
% SPECIAL REQUIREMENTS
% dynare must have been run with the option: json=compute
% Copyright (C) 2017-2019 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 <http://www.gnu.org/licenses/>.
global M_ options_ oo_ ys0_ ex0_
......@@ -121,8 +158,6 @@ function di_perfect_foresight()
firstsimul=1;
end
if nonanticip{rowindex}{3}==1
%this is a permanent shock
oo_.exo_steady_state((nonanticip{rowindex}{2}+1)) = nonanticip{rowindex}{7};
......@@ -224,4 +259,4 @@ function di_perfect_foresight()
data2json.endo_simul.plotx=[0:1:plotlgt];
savejson('',data2json,'perforout.JSON');
return;
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment