Home > . > check_model.m

check_model

PURPOSE ^

SYNOPSIS ^

function check_model()

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function check_model()
0002   global M_
0003   
0004   xlen = M_.maximum_exo_lag+M_.maximum_exo_lead + 1;
0005   if ~ M_.lead_lag_incidence(M_.maximum_lag+1,:) > 0
0006   error ('RESOL: Error in model specification: some variables don"t appear as current') ;
0007 end
0008 
0009 if xlen > 1
0010   error (['RESOL: stochastic exogenous variables must appear only at the' ...
0011       ' current period. Use additional endogenous variables']) ;
0012 end
0013 
0014 if (M_.exo_det_nbr > 0) & (M_.maximum_lag > 1 | M_.maximum_lead > 1)
0015   error(['Exogenous deterministic variables are currently only allowed in' ...
0016      ' models with leads and lags on only one period'])
0017 end
0018

Generated on Fri 16-Jun-2006 09:09:06 by m2html © 2003