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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
041ec257
Verified
Commit
041ec257
authored
3 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Plain Diff
Merge branch 'decomp' of git.dynare.org:JohannesPfeifer/dynare
Ref.
!2044
parents
323c3164
1b4a4c87
Branches
Branches containing commit
No related tags found
1 merge request
!2044
shock_decomposition.m: correctly pass initial date for plotting
Pipeline
#7128
passed
3 years ago
Stage: build
Stage: test
Stage: pkg
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/evaluate_smoother.m
+4
-2
4 additions, 2 deletions
matlab/evaluate_smoother.m
matlab/shock_decomposition.m
+2
-1
2 additions, 1 deletion
matlab/shock_decomposition.m
with
6 additions
and
3 deletions
matlab/evaluate_smoother.m
+
4
−
2
View file @
041ec257
function
[
oo_
,
M_
,
options_
,
bayestopt_
,
Smoothed_variables_declaration_order_deviation_form
]
=
evaluate_smoother
(
parameters
,
var_list
,
M_
,
oo_
,
options_
,
bayestopt_
,
estim_params_
)
function
[
oo_
,
M_
,
options_
,
bayestopt_
,
Smoothed_variables_declaration_order_deviation_form
,
initial_date
]
=
evaluate_smoother
(
parameters
,
var_list
,
M_
,
oo_
,
options_
,
bayestopt_
,
estim_params_
)
% Evaluate the smoother at parameters.
% Evaluate the smoother at parameters.
%
%
% INPUTS
% INPUTS
...
@@ -29,6 +29,7 @@ function [oo_,M_,options_,bayestopt_,Smoothed_variables_declaration_order_deviat
...
@@ -29,6 +29,7 @@ function [oo_,M_,options_,bayestopt_,Smoothed_variables_declaration_order_deviat
% order of declaration of variables (M_.endo_names)
% order of declaration of variables (M_.endo_names)
% in deviations from their respective mean, i.e.
% in deviations from their respective mean, i.e.
% without trend and constant part (used for shock_decomposition)
% without trend and constant part (used for shock_decomposition)
% o initial_date [dseries] initial period, used for shock_decomposition
%
%
% SPECIAL REQUIREMENTS
% SPECIAL REQUIREMENTS
% None
% None
...
@@ -61,7 +62,8 @@ if ischar(parameters) && strcmp(parameters,'calibration')
...
@@ -61,7 +62,8 @@ if ischar(parameters) && strcmp(parameters,'calibration')
options_
.
smoother
=
1
;
options_
.
smoother
=
1
;
end
end
[
dataset_
,
dataset_info
,
xparam1
,
hh
,
M_
,
options_
,
oo_
,
estim_params_
,
bayestopt_
]
=
dynare_estimation_init
(
var_list
,
M_
.
fname
,
[],
M_
,
options_
,
oo_
,
estim_params_
,
bayestopt_
);
[
dataset_
,
dataset_info
,
~
,
~
,
M_
,
options_
,
oo_
,
estim_params_
,
bayestopt_
]
=
dynare_estimation_init
(
var_list
,
M_
.
fname
,
[],
M_
,
options_
,
oo_
,
estim_params_
,
bayestopt_
);
initial_date
=
dataset_
.
firstdate
;
% set the qz_criterium
% set the qz_criterium
options_
=
select_qz_criterium_value
(
options_
);
options_
=
select_qz_criterium_value
(
options_
);
...
...
This diff is collapsed.
Click to expand it.
matlab/shock_decomposition.m
+
2
−
1
View file @
041ec257
...
@@ -84,8 +84,9 @@ end
...
@@ -84,8 +84,9 @@ end
options_
.
selected_variables_only
=
0
;
%make sure all variables are stored
options_
.
selected_variables_only
=
0
;
%make sure all variables are stored
options_
.
plot_priors
=
0
;
options_
.
plot_priors
=
0
;
[
oo_
,
M_
,
~
,
~
,
Smoothed_Variables_deviation_from_mean
]
=
evaluate_smoother
(
parameter_set
,
varlist
,
M_
,
oo_
,
options_
,
bayestopt_
,
estim_params_
);
[
oo_
,
M_
,
~
,
~
,
Smoothed_Variables_deviation_from_mean
,
initial_date
]
=
evaluate_smoother
(
parameter_set
,
varlist
,
M_
,
oo_
,
options_
,
bayestopt_
,
estim_params_
);
options_
.
initial_date
=
initial_date
;
% reduced form
% reduced form
dr
=
oo_
.
dr
;
dr
=
oo_
.
dr
;
...
...
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