Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
dynare
Commits
3b592534
Commit
3b592534
authored
Jan 14, 2022
by
Johannes Pfeifer
Browse files
occbin: fix bug if there is only a surprise shock in the first period
parent
d8c99ff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/+occbin/setup.m
View file @
3b592534
...
...
@@ -56,7 +56,7 @@ if isfield(M_,'surprise_shocks') && ~isempty(M_.surprise_shocks)
ivar
=
M_
.
surprise_shocks
(
ii
)
.
exo_id
;
temp
(
M_
.
surprise_shocks
(
ii
)
.
periods
,
ivar
)
=
M_
.
surprise_shocks
(
ii
)
.
value
;
end
shock_index
=~
all
(
temp
==
0
);
shock_index
=~
all
(
temp
==
0
,
1
);
options_
.
occbin
.
simul
.
SHOCKS
=
temp
(:,
shock_index
);
options_
.
occbin
.
simul
.
exo_pos
=
find
(
shock_index
);
end
Johannes Pfeifer
@JohannesPfeifer
mentioned in commit
5a8d2e90
·
Jan 14, 2022
mentioned in commit
5a8d2e90
mentioned in commit 5a8d2e900cdca58e4468f56ff75db76a4cdf90ac
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment