tar function

Estimation of a TAR model