stoch_simul.m: add nomodelsummary option

kalman-mex
Johannes Pfeifer 2023-10-08 22:13:45 +02:00 committed by Sébastien Villemot
parent cbf57b1af6
commit a00eb5e1de
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
4 changed files with 33 additions and 25 deletions

View File

@ -4498,6 +4498,11 @@ Computing the stochastic solution
Dont print moments of the endogenous variables (printing them
is the default).
.. option:: nomodelsummary
Dont print the model summary and the covariance of the exogenous shocks (printing them
is the default).
.. option:: nograph
Do not create graphs (which implies that they are not saved to

View File

@ -164,6 +164,7 @@ options_.one_sided_hp_filter = 0;
options_.filtered_theoretical_moments_grid = 512;
options_.nodecomposition = false;
options_.nomoments = false;
options_.nomodelsummary = false;
options_.nocorr = false;
options_.periods = 0;
options_.noprint = false;

View File

@ -134,36 +134,38 @@ if info(1)
end
if ~options_.noprint
skipline()
disp('MODEL SUMMARY')
skipline()
disp([' Number of variables: ' int2str(M_.endo_nbr)])
disp([' Number of stochastic shocks: ' int2str(M_.exo_nbr)])
disp([' Number of state variables: ' int2str(M_.nspred)])
disp([' Number of jumpers: ' int2str(M_.nsfwrd)])
disp([' Number of static variables: ' int2str(M_.nstatic)])
my_title='MATRIX OF COVARIANCE OF EXOGENOUS SHOCKS';
labels = M_.exo_names;
headers = vertcat('Variables', labels);
lh = cellofchararraymaxlength(labels)+2;
dyntable(options_, my_title, headers, labels, M_.Sigma_e, lh, 10, 6);
if options_.TeX
labels = M_.exo_names_tex;
if ~options_.nomodelsummary
skipline()
disp('MODEL SUMMARY')
skipline()
disp([' Number of variables: ' int2str(M_.endo_nbr)])
disp([' Number of stochastic shocks: ' int2str(M_.exo_nbr)])
disp([' Number of state variables: ' int2str(M_.nspred)])
disp([' Number of jumpers: ' int2str(M_.nsfwrd)])
disp([' Number of static variables: ' int2str(M_.nstatic)])
my_title='MATRIX OF COVARIANCE OF EXOGENOUS SHOCKS';
labels = M_.exo_names;
headers = vertcat('Variables', labels);
lh = cellofchararraymaxlength(labels)+2;
dyn_latex_table(M_, options_, my_title, 'covar_ex_shocks', headers, labels, M_.Sigma_e, lh, 10, 6);
end
if ~all(diag(M_.H)==0)
my_title='MATRIX OF COVARIANCE OF MEASUREMENT ERRORS';
labels = cellfun(@(x) horzcat('SE_', x), options_.varobs, 'UniformOutput', false);
headers = vertcat('Variables', labels);
lh = cellofchararraymaxlength(labels)+2;
dyntable(options_, my_title, headers, labels, M_.H, lh, 10, 6);
dyntable(options_, my_title, headers, labels, M_.Sigma_e, lh, 10, 6);
if options_.TeX
labels = M_.exo_names_tex;
headers = vertcat('Variables', labels);
lh = cellofchararraymaxlength(labels)+2;
dyn_latex_table(M_, options_, my_title, 'covar_ME', headers, labels, M_.H, lh, 10, 6);
dyn_latex_table(M_, options_, my_title, 'covar_ex_shocks', headers, labels, M_.Sigma_e, lh, 10, 6);
end
if ~all(diag(M_.H)==0)
my_title='MATRIX OF COVARIANCE OF MEASUREMENT ERRORS';
labels = cellfun(@(x) horzcat('SE_', x), options_.varobs, 'UniformOutput', false);
headers = vertcat('Variables', labels);
lh = cellofchararraymaxlength(labels)+2;
dyntable(options_, my_title, headers, labels, M_.H, lh, 10, 6);
if options_.TeX
labels = M_.exo_names_tex;
headers = vertcat('Variables', labels);
lh = cellofchararraymaxlength(labels)+2;
dyn_latex_table(M_, options_, my_title, 'covar_ME', headers, labels, M_.H, lh, 10, 6);
end
end
end
if options_.partial_information

@ -1 +1 @@
Subproject commit 16b063f666df679173e3da7f30ec1bff55755ddb
Subproject commit 3c20b9862b87e894b00c70b10e7f5a425ba0372a