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
af337d8d
Verified
Commit
af337d8d
authored
1 month ago
by
Sébastien Villemot
Browse files
Options
Downloads
Plain Diff
Merge branch 'cosmetics' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2353
parents
23d49470
98332833
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/estimation/get_posterior_parameters.m
+4
-4
4 additions, 4 deletions
matlab/estimation/get_posterior_parameters.m
matlab/estimation/marginal_density.m
+4
-3
4 additions, 3 deletions
matlab/estimation/marginal_density.m
with
8 additions
and
7 deletions
matlab/estimation/get_posterior_parameters.m
+
4
−
4
View file @
af337d8d
...
...
@@ -7,7 +7,9 @@ function xparam = get_posterior_parameters(type,M_,estim_params_,oo_,options_,fi
% o type [char] = 'mode' or 'mean'.
% o M_: [structure] Dynare structure describing the model.
% o estim_params_: [structure] Dynare structure describing the estimated parameters.
% o field_1 [char] optional field like 'mle_'.
% o oo_: [structure] Dynare results structure
% o options_: [structure] Dynare options structure
% o field_1 [char] optional field like 'mle_'.
%
% OUTPUTS
% o xparam vector of estimated parameters
...
...
@@ -15,7 +17,7 @@ function xparam = get_posterior_parameters(type,M_,estim_params_,oo_,options_,fi
% SPECIAL REQUIREMENTS
% None.
% Copyright © 2006-20
18
Dynare Team
% Copyright © 2006-20
25
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -76,8 +78,6 @@ for i=1:ncn
m
=
m
+
1
;
end
FirstDeep
=
m
;
for
i
=
1
:
np
name1
=
M_
.
param_names
{
estim_params_
.
param_vals
(
i
,
1
)};
xparam
(
m
)
=
oo_
.
([
field1
type
])
.
parameters
.
(
name1
);
...
...
This diff is collapsed.
Click to expand it.
matlab/estimation/marginal_density.m
+
4
−
3
View file @
af337d8d
...
...
@@ -3,10 +3,11 @@ function [marginal,oo_] = marginal_density(M_, options_, estim_params_, oo_, bay
% Computes the marginal density
%
% INPUTS
% M_ [structure] Dynare model structure
% options_ [structure] Dynare options structure
% estim_params_ [structure] Dynare estimation parameter structure
% M_ [structure] Dynare model structure
% oo_ [structure] Dynare results structure
% bayestopt_ [structure] describing the priors
% outputFolderName [string] name of folder with results
%
% OUTPUTS
...
...
@@ -16,7 +17,7 @@ function [marginal,oo_] = marginal_density(M_, options_, estim_params_, oo_, bay
% SPECIAL REQUIREMENTS
% none
% Copyright © 2005-202
3
Dynare Team
% Copyright © 2005-202
5
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -64,7 +65,7 @@ if ~isfield(oo_,'posterior_mode') || (options_.mh_replic && isequal(options_.pos
end
% save the posterior mean and the inverse of the covariance matrix
% (useful
l
if the user wants to perform some computations using
% (useful if the user wants to perform some computations using
% the posterior mean instead of the posterior mode ==> ).
parameter_names
=
bayestopt_
.
name
;
save
([
M_
.
dname
filesep
outputFolderName
filesep
M_
.
fname
'_mean.mat'
],
'xparam1'
,
'hh'
,
'parameter_names'
,
'SIGMA'
);
...
...
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