Discontinuities: SETAR and catastrophe models with polynomial regression