Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Stéphane Adjemian
dynare
Commits
41e05391
Commit
41e05391
authored
10 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Plain Diff
Merge pull request #808 from rattoma/gsa
Gsa bug fix and naming fix
parents
97839832
800fd59c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/gsa/scatter_mcf.m
+5
-1
5 additions, 1 deletion
matlab/gsa/scatter_mcf.m
matlab/gsa/stab_map_.m
+7
-24
7 additions, 24 deletions
matlab/gsa/stab_map_.m
with
12 additions
and
25 deletions
matlab/gsa/scatter_mcf.m
+
5
−
1
View file @
41e05391
...
...
@@ -87,7 +87,11 @@ end
bf
=
0.1
;
ffs
=
0.05
/(
p
-
1
);
ffl
=
(
1
-
2
*
bf
-
0.05
)/
p
;
fL
=
linspace
(
bf
,
1
-
bf
+
ffs
,
p
+
1
);
if
p
>
1
,
fL
=
linspace
(
bf
,
1
-
bf
+
ffs
,
p
+
1
);
else
fL
=
bf
;
end
for
i
=
1
:
p
for
j
=
1
:
p
h
=
axes
(
'position'
,[
fL
(
i
),
fL
(
p
+
1
-
j
),
ffl
,
ffl
]);
...
...
This diff is collapsed.
Click to expand it.
matlab/gsa/stab_map_.m
+
7
−
24
View file @
41e05391
...
...
@@ -484,40 +484,23 @@ else
end
if
pprior
% univariate
aname
=
'prior_stab'
;
atitle
=
'Prior StabMap: Parameter driving non-existence of unique stable solution (Unacceptable)'
;
aindetname
=
[
aname
,
'_indet'
];
aindettitle
=
'Prior StabMap: Parameter driving indeterminacy'
;
aunstablename
=
[
aname
,
'_unst'
];
aunstabletitle
=
'Prior StabMap: Parameter driving explosiveness of solution'
;
awronguniname
=
[
aname
,
'_wrong'
];
awrongunititle
=
'Prior StabMap: Parameter driving inability to find solution'
;
acalibuniname
=
[
aname
,
'_calib'
];
acalibunititle
=
'Prior StabMap: Parameter driving IRF/moment restrictions'
;
% bivariate
auname
=
'prior_unacceptable'
;
autitle
=
'Prior StabMap: non-existence of unique stable solution (Unacceptable)'
;
aunstname
=
'prior_unstable'
;
aunsttitle
=
'Prior StabMap: explosiveness of solution'
;
aindname
=
'prior_indeterm'
;
aindtitle
=
'Prior StabMap: Indeterminacy'
;
awrongname
=
'prior_wrong'
;
awrongtitle
=
'Prior StabMap: inability to find solution'
;
acalibname
=
'prior_calib'
;
acalibtitle
=
'Prior StabMap: IRF/moment restrictions'
;
asname
=
'prior_stable'
;
a
s
title
=
'Prior StabMap: unique
S
table
Saddle-Path
'
;
asname
=
'prior_stable'
;
atitle
=
'Prior StabMap:
Parameter driving non-existence of
unique
s
table
solution (Unacceptable)
'
;
else
% univariate
aname
=
'mc_stab'
;
atitle
=
'MC (around posterior mode) StabMap: Parameter driving non-existence of unique stable solution (Unacceptable)'
;
aindetname
=
[
aname
,
'_indet'
];
aindettitle
=
'MC (around posterior mode) StabMap: Parameter driving indeterminacy'
;
aunstablename
=
[
aname
,
'_unst'
];
aunstabletitle
=
'MC (around posterior mode) StabMap: Parameter driving explosiveness of solution'
;
awronguniname
=
[
aname
,
'_wrong'
];
awrongunititle
=
'MC (around posterior mode) StabMap: Parameter driving inability to find solution'
;
acalibuniname
=
[
aname
,
'_calib'
];
acalibunititle
=
'MC (around posterior mode) StabMap: Parameter driving IRF/moment restrictions'
;
% bivariate
auname
=
'mc_unacceptable'
;
autitle
=
'MC (around posterior mode) StabMap: non-existence of unique stable solution (Unacceptable)'
;
aunstname
=
'mc_unstable'
;
aunsttitle
=
'MC (around posterior mode) StabMap: explosiveness of solution'
;
aindname
=
'mc_indeterm'
;
aindtitle
=
'MC (around posterior mode) StabMap: Indeterminacy'
;
awrongname
=
'mc_wrong'
;
awrongtitle
=
'MC (around posterior mode) StabMap: inability to find solution'
;
acalibname
=
'mc_calib'
;
acalibtitle
=
'MC (around posterior mode) StabMap: IRF/moment restrictions'
;
asname
=
'mc_stable'
;
a
s
title
=
'MC (around posterior mode) StabMap:
U
nique
S
table
Saddle-Path
'
;
asname
=
'mc_stable'
;
atitle
=
'MC (around posterior mode) StabMap:
Parameter driving non-existence of u
nique
s
table
solution (Unacceptable)
'
;
end
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
aname
,
'_*.*'
]);
%delete([OutputDirectoryName,filesep,fname_,'_',aname,'_SA_*.*']);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
asname
,
'_corr_*.*'
]);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
auname
,
'_corr_*.*'
]);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
aunstname
,
'_corr_*.*'
]);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
aindname
,
'_corr_*.*'
]);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
asname
,
'.*'
]);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
acalibname
,
'.*'
]);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
aindname
,
'.*'
]);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
aunstname
,
'.*'
]);
delete
([
OutputDirectoryName
,
filesep
,
fname_
,
'_'
,
awrongname
,
'.*'
]);
if
length
(
iunstable
)
>
0
||
length
(
iwrong
)
>
0
,
fprintf
([
'%4.1f%% of the prior support gives unique saddle-path solution.\n'
],
length
(
istable
)/
Nsam
*
100
)
...
...
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