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
Dynare
reporting
Commits
7dc8638a
Commit
7dc8638a
authored
Jul 02, 2015
by
Houtan Bastani
Browse files
create a new page for each exo variable
parent
46a96563
Changes
1
Hide whitespace changes
Inline
Side-by-side
macros/make_report_irfs.m
View file @
7dc8638a
...
...
@@ -50,16 +50,19 @@ function make_report_irfs(M, oo)
justAddedPage
=
0
;
r
=
report
();
for
i
=
1
:
length
(
M
.
exo_names
)
newexo
=
1
;
for
j
=
1
:
length
(
M
.
endo_names
)
if
mod
(
n6
-
1
,
6
)
==
0
&&
~
justAddedPage
idx
=
ismember
(
fields
,[
strtrim
(
M
.
endo_names
(
j
,:))
'_'
...
strtrim
(
M
.
exo_names
(
i
,:))]);
if
(
mod
(
n6
-
1
,
6
)
==
0
&&
~
justAddedPage
)
||
...
(
newexo
&&
any
(
idx
))
r
=
r
.
addPage
(
'title'
,
{
'Canned Irf Report'
;
[
'shock '
...
strrep
(
strtrim
(
M
.
exo_names
(
i
,:)),
'_'
,
'\_'
)]});
r
=
r
.
addSection
(
'cols'
,
2
);
n6
=
1
;
justAddedPage
=
1
;
newexo
=
0
;
end
idx
=
ismember
(
fields
,[
strtrim
(
M
.
endo_names
(
j
,:))
'_'
...
strtrim
(
M
.
exo_names
(
i
,:))]);
if
any
(
idx
)
r
=
r
.
addGraph
(
'data'
,
dseries
(
oo
.
irfs
.
(
fields
{
idx
})
'
),
...
'title'
,
strrep
(
M
.
endo_names
(
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