Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dynare
dynare
Commits
c27c4fd9
Commit
c27c4fd9
authored
Jan 25, 2021
by
Johannes Pfeifer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moments_varendo: delete stale files from previous runs
parent
b652b6d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
matlab/dynare_estimation_1.m
matlab/dynare_estimation_1.m
+9
-0
No files found.
matlab/dynare_estimation_1.m
View file @
c27c4fd9
...
@@ -536,6 +536,15 @@ if (any(bayestopt_.pshape >0 ) && options_.mh_replic) || ...
...
@@ -536,6 +536,15 @@ if (any(bayestopt_.pshape >0 ) && options_.mh_replic) || ...
if
error_flag
if
error_flag
error
(
'Estimation::mcmc: I cannot compute the posterior moments for the endogenous variables!'
)
error
(
'Estimation::mcmc: I cannot compute the posterior moments for the endogenous variables!'
)
end
end
if
options_
.
load_mh_file
&&
options_
.
mh_replic
==
0
%user wants to recompute results
[
MetropolisFolder
,
info
]
=
CheckPath
(
'metropolis'
,
M_
.
dname
);
if
~
info
generic_post_data_file_name
=
{
'Posterior2ndOrderMoments'
,
'decomposition'
,
'PosteriorVarianceDecomposition'
,
'correlation'
,
'PosteriorCorrelations'
,
'conditional decomposition'
,
'PosteriorConditionalVarianceDecomposition'
};
for
ii
=
1
:
length
(
generic_post_data_file_name
)
delete_stale_file
([
MetropolisFolder
filesep
M_
.
fname
'_'
generic_post_data_file_name
{
1
,
ii
}
'*'
]);
end
end
end
oo_
=
compute_moments_varendo
(
'posterior'
,
options_
,
M_
,
oo_
,
var_list_
);
oo_
=
compute_moments_varendo
(
'posterior'
,
options_
,
M_
,
oo_
,
var_list_
);
end
end
if
options_
.
smoother
||
~
isempty
(
options_
.
filter_step_ahead
)
||
options_
.
forecast
if
options_
.
smoother
||
~
isempty
(
options_
.
filter_step_ahead
)
||
options_
.
forecast
...
...
Write
Preview
Markdown
is supported
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