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
6d95abdb
Unverified
Commit
6d95abdb
authored
Feb 16, 2021
by
Sébastien Villemot
Browse files
Merge remote-tracking branch 'origin/JohannesPfeifer-master-patch-11225'
Ref. !1830
parents
9ddad32e
6b2555f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/smoother2histval.m
View file @
6d95abdb
...
...
@@ -121,7 +121,7 @@ else
end
% Determine number of periods
n
=
size
(
smoothedvars
.
(
tmp
{
1
}));
n
=
length
(
smoothedvars
.
(
tmp
{
1
}));
if
n
<
M_
.
maximum_endo_lag
error
(
'Not enough observations to create initial conditions'
)
...
...
@@ -171,7 +171,7 @@ end
% Handle all endogenous variables to be copied
data
=
zeros
(
M_
.
orig_maximum_endo_lag
,
length
(
invars
));
k
=
M_
.
orig_maximum_endo_lag
-
M_
.
maximum_endo_lag
+
1
:
M_
.
orig_maximum_lag
k
=
M_
.
orig_maximum_endo_lag
-
M_
.
maximum_endo_lag
+
1
:
M_
.
orig_maximum_lag
;
for
i
=
1
:
length
(
invars
)
if
isempty
(
strmatch
(
invars
{
i
},
M_
.
endo_names
,
'exact'
))
% Skip exogenous
...
...
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