Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
f29d9744
Verified
Commit
f29d9744
authored
6 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
add copyright and fix spacing
parent
31d59d6b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#719
failed
6 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/+gui/+perfect-foresight/read.m
+262
-227
262 additions, 227 deletions
matlab/+gui/+perfect-foresight/read.m
with
262 additions
and
227 deletions
matlab/+gui/+perfect-foresight/read.m
+
262
−
227
View file @
f29d9744
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment