The following is an example with both TAR (sharp cutoff) and STAR estimation. This is based on example 4 from Terasvirta(1994), "Specification, Estimation and Evaluation of Smooth Transition Autoregressive Models", JASA, vol 89, pp 208-218. The TAR estimation was added to that.
Both TAR and STAR pick the 4th lag as the best indicator. The TAR model, however, doesn't show strong evidence of a threshold effect on bootstrap simulations. The LM test for STAR does. When estimated, however, the STAR also doesn't show that strong a threshold effect; the behavior of the two branches isn't that different.
Data file:
