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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
dynare
Commits
e24b1ea7
Commit
e24b1ea7
authored
8 years ago
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
fixes in preamble and plot_shock_decomp structure of options.
parent
bab401eb
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/initial_condition_decomposition.m
+10
-10
10 additions, 10 deletions
matlab/initial_condition_decomposition.m
with
10 additions
and
10 deletions
matlab/initial_condition_decomposition.m
+
10
−
10
View file @
e24b1ea7
function
oo_
=
initial_condition_decomposition
(
M_
,
oo_
,
options_
,
varlist
,
bayestopt_
,
estim_params_
)
function
oo_
=
initial_condition_decomposition
(
M_
,
oo_
,
options_
,
varlist
,
bayestopt_
,
estim_params_
)
% function z = initial_condition_decomposition(M_,oo_,options_,varlist)
% function z = initial_condition_decomposition(M_,oo_,options_,varlist
,bayestopt_,estim_params_
)
% Computes
shocks
contribution to a simulated trajectory. The field set is
% Computes
initial condition
contribution to a simulated trajectory. The field set is
% oo_.
shock
_decomposition. It is a n_var by n
shock
+2 by nperiods array. The
% oo_.
initval
_decomposition. It is a n_var by n
_var
+2 by nperiods array. The
% first n
shock
columns store the respective
shock
contribution
s
, column n+1
% first n
_var
columns store the respective
endogenous initval
contribution, column n+1
% stores the role of the
initial condition
s, while column n+2 stores the
% stores the role of the
shock
s, while column n+2 stores the
% value of the smoothed variables.
Both the variables and shock
s are stored
% value of the smoothed variables.
Variable
s are stored
% in the order of declaration, i.e. M_.endo_names
and M_.exo_names, respectively
.
% in the order of declaration, i.e. M_.endo_names.
%
%
% INPUTS
% INPUTS
% M_: [structure] Definition of the model
% M_: [structure] Definition of the model
...
@@ -21,7 +21,7 @@ function oo_ = initial_condition_decomposition(M_,oo_,options_,varlist,bayestopt
...
@@ -21,7 +21,7 @@ function oo_ = initial_condition_decomposition(M_,oo_,options_,varlist,bayestopt
% SPECIAL REQUIREMENTS
% SPECIAL REQUIREMENTS
% none
% none
% Copyright (C) 20
09-2016
Dynare Team
% Copyright (C) 20
17
Dynare Team
%
%
% This file is part of Dynare.
% This file is part of Dynare.
%
%
...
@@ -117,8 +117,8 @@ end
...
@@ -117,8 +117,8 @@ end
oo
.
shock_decomposition
=
oo_
.
initval_decomposition
;
oo
.
shock_decomposition
=
oo_
.
initval_decomposition
;
M_
.
exo_names
=
M_
.
endo_names
;
M_
.
exo_names
=
M_
.
endo_names
;
M_
.
exo_nbr
=
M_
.
endo_nbr
;
M_
.
exo_nbr
=
M_
.
endo_nbr
;
options_
.
shock_decomp
.
screen_shocks
=
1
;
options_
.
plot_
shock_decomp
.
screen_shocks
=
1
;
options_
.
use_shock_groups
=
''
;
options_
.
use_shock_groups
=
''
;
options_
.
shock_decomp
.
fig_names
=
'initval'
;
options_
.
plot_
shock_decomp
.
fig_names
=
'initval'
;
plot_shock_decomposition
(
M_
,
oo
,
options_
,
varlist
);
plot_shock_decomposition
(
M_
,
oo
,
options_
,
varlist
);
% end
% end
\ No newline at end of file
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