tlrt function

Likelihood ratio test for threshold nonlinearity