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
Dóra Kocsis
dynare
Commits
ad8b6157
Commit
ad8b6157
authored
Jan 07, 2013
by
Sébastien Villemot
Browse files
Use maximum_endo_lag instead of maximum_lag
Closes: #292
parent
2fc7aa7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/model_diagnostics.m
View file @
ad8b6157
...
...
@@ -16,7 +16,7 @@ function model_diagnostics(M,options,oo)
% none.
%
% Copyright (C) 1996-201
2
Dynare Team
% Copyright (C) 1996-201
3
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -38,13 +38,12 @@ global jacob
endo_nbr
=
M
.
endo_nbr
;
endo_names
=
M
.
endo_names
;
lead_lag_incidence
=
M
.
lead_lag_incidence
;
maximum_lag
=
M
.
maximum_lag
;
maximum_lead
=
M
.
maximum_lead
;
maximum_endo_lag
=
M
.
maximum_endo_lag
;
%
% missing variables at the current period
%
k
=
find
(
lead_lag_incidence
(
maximum_lag
+
1
,:)
==
0
);
k
=
find
(
lead_lag_incidence
(
maximum_
endo_
lag
+
1
,:)
==
0
);
if
~
isempty
(
k
)
disp
([
'The following endogenous variables aren
''
t present at '
...
'the current period in the model:'
])
...
...
@@ -58,8 +57,6 @@ end
%
info
=
0
;
it_
=
M
.
maximum_lag
+
1
;
if
M
.
exo_nbr
==
0
oo
.
exo_steady_state
=
[]
;
end
...
...
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