On a class of threshold AR(k) processes