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
Dóra Kocsis
dynare
Commits
2f5d76dc
Commit
2f5d76dc
authored
Apr 13, 2012
by
Houtan Bastani
Browse files
ms-sbvar: set A0, A+, Zeta, and Q based on output_file_tag passed to estimation
parent
b96c35a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/ms-sbvar/set_ms_estimation_file.m
View file @
2f5d76dc
function
[
options_
,
oo_
]
=
set_ms_estimation_file
(
file_tag
,
options_
,
oo_
)
% function [options_, oo_]=set_ms_estimation_file(file_tag, options_, oo_)
% Set options_.ms.free_param_file based on user input
% Set oo_.ms.maxparams, oo_.ms.A0, oo_.ms.Aplus, oo_.ms.Zeta, oo_.ms.Q
% based on estimation output files
%
% INPUTS
% file_tag: (string) necessary because of different meanings of
...
...
@@ -36,8 +37,15 @@ function [options_, oo_]=set_ms_estimation_file(file_tag, options_, oo_)
options_
.
ms
.
free_param_file
=
[
'est_free_'
file_tag
'.out'
];
if
~
exist
(
options_
.
ms
.
free_param_file
,
'file'
)
error
([
'ERROR: Could not find free parameter file: '
options_
.
ms
.
free_param_file
]);
else
oo_
.
ms
.
maxparams
=
load
(
options_
.
ms
.
free_param_file
);
oo_
.
ms
.
maxparams
=
oo_
.
ms
.
maxparams
(
3
:
end
)
'
;
end
oo_
.
ms
.
maxparams
=
load
(
options_
.
ms
.
free_param_file
);
oo_
.
ms
.
maxparams
=
oo_
.
ms
.
maxparams
(
3
:
end
)
'
;
options_
.
ms
.
VAR_parameters_file
=
[
file_tag
'.mat'
];
if
~
exist
(
options_
.
ms
.
VAR_parameters_file
,
'file'
)
error
([
'ERROR: Could not find VAR parameters file: '
options_
.
ms
.
VAR_parameters_file
]);
else
oo_
.
ms
=
load
(
options_
.
ms
.
VAR_parameters_file
);
end
end
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