lin.test function

A Tukey one-degree-of-freedom test for linearity in time series.