diff --git a/matlab/k_order_pert.m b/matlab/k_order_pert.m index 7a02d8acd..315c4494a 100644 --- a/matlab/k_order_pert.m +++ b/matlab/k_order_pert.m @@ -30,6 +30,10 @@ nspred = M.nspred; if order>1 && options.loglinear error('The loglinear-option currently only works at order 1') end +if M.maximum_endo_lead == 0 && order>1 + error(['2nd and 3rd order approximation not implemented for purely ' ... + 'backward models']) +end switch(order) case 1