Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Ratto
dynare
Commits
20ffbe69
Commit
20ffbe69
authored
12 years ago
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
fixes around options nograph and nodisplay
(cherry picked from commit
fd24b936
)
parent
48d563a3
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/dynare_identification.m
+18
-6
18 additions, 6 deletions
matlab/dynare_identification.m
matlab/plot_identification.m
+5
-5
5 additions, 5 deletions
matlab/plot_identification.m
with
23 additions
and
11 deletions
matlab/dynare_identification.m
+
18
−
6
View file @
20ffbe69
...
...
@@ -267,7 +267,9 @@ if iload <=0,
% normLRE = max(abs(siLRE)')';
save
([
IdentifDirectoryName
'/'
M_
.
fname
'_identif.mat'
],
'idehess_point'
,
'idemoments_point'
,
'idemodel_point'
,
'idelre_point'
,
'store_options_ident'
)
disp_identification
(
params
,
idemodel_point
,
idemoments_point
,
name
);
plot_identification
(
params
,
idemoments_point
,
idehess_point
,
idemodel_point
,
idelre_point
,
advanced
,
parameters
,
name
,
IdentifDirectoryName
);
if
~
options_
.
nograph
,
plot_identification
(
params
,
idemoments_point
,
idehess_point
,
idemodel_point
,
idelre_point
,
advanced
,
parameters
,
name
,
IdentifDirectoryName
);
end
if
SampleSize
>
1
,
disp
(
' '
)
...
...
@@ -440,13 +442,17 @@ end
if
iload
,
disp
([
'Testing '
,
parameters
])
disp_identification
(
idehess_point
.
params
,
idemodel_point
,
idemoments_point
,
name
);
plot_identification
(
idehess_point
.
params
,
idemoments_point
,
idehess_point
,
idemodel_point
,
idelre_point
,
advanced
,
parameters
,
name
,
IdentifDirectoryName
);
if
~
options_
.
nograph
,
plot_identification
(
idehess_point
.
params
,
idemoments_point
,
idehess_point
,
idemodel_point
,
idelre_point
,
advanced
,
parameters
,
name
,
IdentifDirectoryName
);
end
end
if
SampleSize
>
1
,
fprintf
(
'\n'
)
disp
(
'Testing MC sample'
)
disp_identification
(
pdraws
,
idemodel
,
idemoments
,
name
);
plot_identification
(
pdraws
,
idemoments
,
idehess_point
,
idemodel
,
idelre
,
advanced
,
'MC sample - '
,
name
,
IdentifDirectoryName
);
if
~
options_
.
nograph
,
plot_identification
(
pdraws
,
idemoments
,
idehess_point
,
idemodel
,
idelre
,
advanced
,
'MC sample - '
,
name
,
IdentifDirectoryName
);
end
if
advanced
,
jcrit
=
find
(
idemoments
.
ino
);
if
length
(
jcrit
)
<
SampleSize
,
...
...
@@ -463,7 +469,9 @@ if SampleSize > 1,
end
disp_identification
(
pdraws
(
jmax
,:),
idemodel_max
,
idemoments_max
,
name
);
close
all
,
plot_identification
(
pdraws
(
jmax
,:),
idemoments_max
,
idehess_max
,
idemodel_max
,
idelre_max
,
1
,
tittxt
,
name
,
IdentifDirectoryName
);
if
~
options_
.
nograph
,
plot_identification
(
pdraws
(
jmax
,:),
idemoments_max
,
idehess_max
,
idemodel_max
,
idelre_max
,
1
,
tittxt
,
name
,
IdentifDirectoryName
);
end
[
dum
,
jmin
]
=
min
(
idemoments
.
cond
);
fprintf
(
'\n'
)
tittxt
=
'Draw with SMALLEST condition number'
;
...
...
@@ -476,7 +484,9 @@ if SampleSize > 1,
end
disp_identification
(
pdraws
(
jmin
,:),
idemodel_min
,
idemoments_min
,
name
);
close
all
,
plot_identification
(
pdraws
(
jmin
,:),
idemoments_min
,
idehess_min
,
idemodel_min
,
idelre_min
,
1
,
tittxt
,
name
,
IdentifDirectoryName
);
if
~
options_
.
nograph
,
plot_identification
(
pdraws
(
jmin
,:),
idemoments_min
,
idehess_min
,
idemodel_min
,
idelre_min
,
1
,
tittxt
,
name
,
IdentifDirectoryName
);
end
else
for
j
=
1
:
length
(
jcrit
),
tittxt
=
[
'Rank deficient draw n. '
,
int2str
(
j
)];
...
...
@@ -488,7 +498,9 @@ if SampleSize > 1,
end
disp_identification
(
pdraws
(
jcrit
(
j
),:),
idemodel_
(
j
),
idemoments_
(
j
),
name
);
close
all
,
plot_identification
(
pdraws
(
jcrit
(
j
),:),
idemoments_
(
j
),
idehess_
(
j
),
idemodel_
(
j
),
idelre_
(
j
),
1
,
tittxt
,
name
,
IdentifDirectoryName
);
if
~
options_
.
nograph
,
plot_identification
(
pdraws
(
jcrit
(
j
),:),
idemoments_
(
j
),
idehess_
(
j
),
idemodel_
(
j
),
idelre_
(
j
),
1
,
tittxt
,
name
,
IdentifDirectoryName
);
end
end
if
~
iload
,
save
([
IdentifDirectoryName
'/'
M_
.
fname
'_identif.mat'
],
'idehess_'
,
'idemoments_'
,
'idemodel_'
,
'idelre_'
,
'jcrit'
,
'-append'
);
...
...
This diff is collapsed.
Click to expand it.
matlab/plot_identification.m
+
5
−
5
View file @
20ffbe69
...
...
@@ -171,10 +171,10 @@ if SampleSize == 1,
end
for
j
=
1
:
min
(
nparam
,
8
),
if
j
<
5
,
f
igure
(
f1
),
set
(
0
,
'CurrentF
igure
'
,
f1
),
jj
=
j
;
else
f
igure
(
f2
),
set
(
0
,
'CurrentF
igure
'
,
f2
),
jj
=
j
-
4
;
end
subplot
(
4
,
1
,
jj
),
...
...
@@ -261,7 +261,7 @@ else
% end
if
nparam
<
5
,
f1
=
dyn_figure
(
options_
,
'Name'
,[
tittxt
,
' - MC Identification patterns (moments): HIGHEST SV'
])
f1
=
dyn_figure
(
options_
,
'Name'
,[
tittxt
,
' - MC Identification patterns (moments): HIGHEST SV'
])
;
else
f1
=
dyn_figure
(
options_
,
'Name'
,[
tittxt
,
' - MC Identification patterns (moments): SMALLEST SV'
]);
f2
=
dyn_figure
(
options_
,
'Name'
,[
tittxt
,
' - MC Identification patterns (moments): HIGHEST SV'
]);
...
...
@@ -274,12 +274,12 @@ else
end
for
j
=
1
:
nplots
,
if
(
nparam
>
4
&&
j
<=
ceil
(
nplots
/
2
))
||
nparam
<
5
,
f
igure
(
f1
),
set
(
0
,
'CurrentF
igure
'
,
f1
),
jj
=
j
;
VVV
=
squeeze
(
abs
(
idemoments
.
V
(:,:,
end
-
j
+
1
)));
SSS
=
idemoments
.
S
(:,
end
-
j
+
1
);
else
f
igure
(
f2
),
set
(
0
,
'CurrentF
igure
'
,
f2
),
jj
=
j
-
ceil
(
nplots
/
2
);
VVV
=
squeeze
(
abs
(
idemoments
.
V
(:,:,
jj
)));
SSS
=
idemoments
.
S
(:,
jj
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment