ms_compute_probabilities
PURPOSE 
function [options_, oo_]=ms_compute_probabilities(M_, options_, oo_)
SYNOPSIS 
function [options_, oo_]=ms_compute_probabilities(M_, options_, oo_)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
This function is called by:
SOURCE CODE 
0001 function [options_, oo_]=ms_compute_probabilities(M_, options_, oo_)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 disp('MS-SBVAR Compute Regime Probabilities');
0035 options_ = set_file_tags(options_);
0036 clean_ms_probabilities_files(options_.ms.output_file_tag);
0037 [options_, oo_] = set_ms_estimation_file(options_.ms.file_tag, options_, oo_);
0038
0039
0040 opt = ['-probabilities -seed ' num2str(options_.DynareRandomStreams.seed)];
0041 opt = [opt ' -ft ' options_.ms.file_tag];
0042 opt = [opt ' -fto ' options_.ms.output_file_tag];
0043
0044 if options_.ms.filtered_probabilities
0045 opt = [opt ' -filtered' ];
0046 prob_out_file = ['filtered_' options_.ms.output_file_tag '.out'];
0047 elseif options_.ms.real_time_smoothed_probabilities
0048 opt = [opt ' -real_time_smoothed' ];
0049 prob_out_file = 0;
0050 else
0051 opt = [opt ' -smoothed' ];
0052 prob_out_file = ['smoothed_' options_.ms.output_file_tag '.out'];
0053 end
0054
0055
0056 [err] = ms_sbvar_command_line(opt);
0057 mexErrCheck('ms_compute_probabilities',err);
0058
0059
0060 if ischar(prob_out_file)
0061 computed_probabilities = load(prob_out_file);
0062 plot_ms_probabilities(computed_probabilities,options_);
0063 end
0064 end
Generated on Tue 22-May-2012 02:40:23 by m2html © 2005