Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Johannes Pfeifer
dynare
Commits
1098fb45
Commit
1098fb45
authored
Jun 01, 2010
by
Michel Juillard
Browse files
ramsey_policy: eliminating unnecessary leads and lags
parent
03961122
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dyn_ramsey_dynamic_.m
View file @
1098fb45
...
...
@@ -223,6 +223,17 @@ i_leadlag1 = zeros(size(i_leadlag1))';
i_leadlag1
(
nonzeros
(
m
))
=
1
:
nnz
(
m
);
i_leadlag1
=
i_leadlag1
'
;
%eliminating lags in t-2 and leads in t+2, if possible
if
all
(
i_leadlag1
(
5
,:)
==
0
)
i_leadlag1
=
i_leadlag1
(
1
:
4
,:);
max_lead1
=
1
;
end
if
all
(
i_leadlag1
(
1
,:)
==
0
)
i_leadlag1
=
i_leadlag1
(
2
:
4
,:);
max_lag1
=
1
;
end
% setting expanded model parameters
% storing original values
M_
.
endo_nbr
=
endo_nbr1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment