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
Camilo Marchesini
dynare
Commits
fd8a69d9
Commit
fd8a69d9
authored
Nov 13, 2017
by
Marco Ratto
Committed by
Stéphane Adjemian
Jan 10, 2018
Browse files
bug fix in setting realtime_conditional_shock_decomposition field
parent
a04b2876
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/realtime_shock_decomposition.m
View file @
fd8a69d9
...
...
@@ -224,6 +224,7 @@ for j=presample+1:nobs
zreal
(:,:,
j
-
forecast_
:
j
)
-
...
oo_
.
realtime_forecast_shock_decomposition
.
([
'time_'
int2str
(
j
-
forecast_
)]);
oo_
.
realtime_conditional_shock_decomposition
.
([
'time_'
int2str
(
j
-
forecast_
)])(:,
end
-
1
,:)
=
...
oo_
.
realtime_conditional_shock_decomposition
.
([
'time_'
int2str
(
j
-
forecast_
)])(:,
end
-
1
,:)
+
...
oo_
.
realtime_forecast_shock_decomposition
.
([
'time_'
int2str
(
j
-
forecast_
)])(:,
end
,:);
oo_
.
realtime_conditional_shock_decomposition
.
([
'time_'
int2str
(
j
-
forecast_
)])(:,
end
,:)
=
...
zreal
(:,
end
,
j
-
forecast_
:
j
);
...
...
@@ -234,6 +235,7 @@ for j=presample+1:nobs
zreal
(:,:,
j
-
my_forecast_
:
j
)
-
...
oo_
.
realtime_forecast_shock_decomposition
.
([
'time_'
int2str
(
j
-
my_forecast_
)])(:,:,
1
:
my_forecast_
+
1
);
oo_
.
realtime_conditional_shock_decomposition
.
([
'time_'
int2str
(
j
-
my_forecast_
)])(:,
end
-
1
,:)
=
...
oo_
.
realtime_conditional_shock_decomposition
.
([
'time_'
int2str
(
j
-
my_forecast_
)])(:,
end
-
1
,:)
+
...
oo_
.
realtime_forecast_shock_decomposition
.
([
'time_'
int2str
(
j
-
my_forecast_
)])(:,
end
,
1
:
my_forecast_
+
1
);
oo_
.
realtime_conditional_shock_decomposition
.
([
'time_'
int2str
(
j
-
my_forecast_
)])(:,
end
,:)
=
...
zreal
(:,
end
,
j
-
my_forecast_
:
j
);
...
...
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