Explicit error message for 2nd and 3rd order purely forward models

time-shift
Sébastien Villemot 2010-10-13 18:52:13 +02:00
parent 505ed643a1
commit 153f627dfe
1 changed files with 4 additions and 0 deletions

View File

@ -254,6 +254,10 @@ if M_.maximum_endo_lead == 0
return
end
if M_.maximum_endo_lag == 0 && options_.order > 1
error(['2nd and 3rd order approximation not implemented for purely forward models'])
end
%forward--looking models
if nstatic > 0
[Q,R] = qr(b(:,1:nstatic));