Add more explicit error message.
pac.print does not work in PAC/MCE equations.pac-components
parent
4f5e0c7faa
commit
ceb67c42c7
|
@ -93,14 +93,18 @@ end
|
||||||
expectationmodel = M_.(expectationmodelfield).(expectationmodelname);
|
expectationmodel = M_.(expectationmodelfield).(expectationmodelname);
|
||||||
|
|
||||||
% Get the name of the associated VAR model and test its existence.
|
% Get the name of the associated VAR model and test its existence.
|
||||||
if ~isfield(M_.(expectationmodel.auxiliary_model_type), expectationmodel.auxiliary_model_name)
|
if isfield(M_.(expectationmodelfield), 'auxiliary_model_type')
|
||||||
switch expectationmodelkind
|
if ~isfield(M_.(expectationmodel.auxiliary_model_type), expectationmodel.auxiliary_model_name)
|
||||||
case 'var'
|
switch expectationmodelkind
|
||||||
error('Unknown VAR/TREND_COMPONENT model (%s) in VAR_EXPECTATION_MODEL (%s)!', expectationmodel.auxiliary_model_name, expectationmodelname)
|
case 'var'
|
||||||
case 'pac'
|
error('Unknown VAR/TREND_COMPONENT model (%s) in VAR_EXPECTATION_MODEL (%s)!', expectationmodel.auxiliary_model_name, expectationmodelname)
|
||||||
error('Unknown VAR/TREND_COMPONENT model (%s) in PAC_EXPECTATION_MODEL (%s)!', expectationmodel.auxiliary_model_name, expectationmodelname)
|
case 'pac'
|
||||||
otherwise
|
error('Unknown VAR/TREND_COMPONENT model (%s) in PAC_EXPECTATION_MODEL (%s)!', expectationmodel.auxiliary_model_name, expectationmodelname)
|
||||||
|
otherwise
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error('print method does not work in PAC/MCE.')
|
||||||
end
|
end
|
||||||
|
|
||||||
auxmodel = M_.(expectationmodel.auxiliary_model_type).(expectationmodel.auxiliary_model_name);
|
auxmodel = M_.(expectationmodel.auxiliary_model_type).(expectationmodel.auxiliary_model_name);
|
||||||
|
|
Loading…
Reference in New Issue