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
d6ce82cd
Commit
d6ce82cd
authored
Oct 28, 2011
by
Ferhat Mihoubi
Browse files
Considers exogenous variables with leads or lags in the evaluation of the dynamic model
parent
01ef5539
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dr_block.m
View file @
d6ce82cd
...
...
@@ -57,6 +57,7 @@ if options_.order > 1
end
z
=
repmat
(
dr
.
ys
,
1
,
M_
.
maximum_lead
+
M_
.
maximum_lag
+
1
);
zx
=
repmat
([
oo_
.
exo_simul
oo_
.
exo_det_simul
],
M_
.
maximum_lead
+
M_
.
maximum_lag
+
1
,
1
);
if
(
isfield
(
M_
,
'block_structure'
))
data
=
M_
.
block_structure
.
block
;
Size
=
length
(
M_
.
block_structure
.
block
);
...
...
@@ -65,9 +66,9 @@ else
Size
=
1
;
end
;
if
(
options_
.
bytecode
)
[
chck
,
zz
,
data
]
=
bytecode
(
'dynamic'
,
'evaluate'
,
z
,
[
oo_
.
exo_simul
oo_
.
exo_det_simul
]
,
M_
.
params
,
dr
.
ys
,
1
,
data
);
[
chck
,
zz
,
data
]
=
bytecode
(
'dynamic'
,
'evaluate'
,
z
,
zx
,
M_
.
params
,
dr
.
ys
,
1
,
data
);
else
[
r
,
data
]
=
feval
([
M_
.
fname
'_dynamic'
],
z
'
,
[
oo_
.
exo_simul
oo_
.
exo_det_simul
]
,
M_
.
params
,
dr
.
ys
,
M_
.
maximum_lag
+
1
,
data
);
[
r
,
data
]
=
feval
([
M_
.
fname
'_dynamic'
],
z
'
,
zx
,
M_
.
params
,
dr
.
ys
,
M_
.
maximum_lag
+
1
,
data
);
chck
=
0
;
end
;
mexErrCheck
(
'bytecode'
,
chck
);
...
...
Write
Preview
Markdown
is supported
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