commit
f26a469208
|
@ -1,42 +0,0 @@
|
|||
function disp_model_summary(M,dr,options)
|
||||
|
||||
% function disp_model_summary(M)
|
||||
% displays the model summary
|
||||
%
|
||||
% INPUTS
|
||||
% M [matlab structure] Definition of the model.
|
||||
% dr [matlab structure] Decision rules
|
||||
% options [matlab structure] Options
|
||||
%
|
||||
% Copyright © 2001-2018 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
% Dynare is free software: you can redistribute it and/or modify
|
||||
% it under the terms of the GNU General Public License as published by
|
||||
% the Free Software Foundation, either version 3 of the License, or
|
||||
% (at your option) any later version.
|
||||
%
|
||||
% Dynare is distributed in the hope that it will be useful,
|
||||
% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
% GNU General Public License for more details.
|
||||
%
|
||||
% You should have received a copy of the GNU General Public License
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
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(length(find(dr.kstate(:,2) <= M.maximum_lag+1)))])
|
||||
disp([' Number of jumpers: ' ...
|
||||
int2str(length(find(dr.kstate(:,2) == M.maximum_lag+2)))])
|
||||
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);
|
|
@ -58,7 +58,6 @@ exo_nbr = DynareModel.exo_nbr;
|
|||
if isempty(reorder_jacobian_columns)
|
||||
|
||||
maximum_lag = DynareModel.maximum_endo_lag;
|
||||
kstate = dr.kstate;
|
||||
nfwrd = DynareModel.nfwrd;
|
||||
nboth = DynareModel.nboth;
|
||||
npred = DynareModel.npred;
|
||||
|
@ -70,7 +69,7 @@ if isempty(reorder_jacobian_columns)
|
|||
k2 = 1:(nfwrd+nboth);
|
||||
|
||||
order_var = dr.order_var;
|
||||
nd = size(kstate,1);
|
||||
nd = npred+nfwrd+2*nboth;
|
||||
lead_lag_incidence = DynareModel.lead_lag_incidence;
|
||||
nz = nnz(lead_lag_incidence);
|
||||
|
||||
|
|
Loading…
Reference in New Issue