I am trying to find the Gauss code for the Harvey et al. (2007) test and Harvey and Leybourne (2007) tests to detetect linearity or nonlinearity. Does anyone know where to find the corresponding codes?
References
1. Harvey, D.I. and Leybourne, S.J. (2007), "Testing for time series linearity," The Econometrics Journal 10(1): 149-165.
2. Harvey, D.I., Leybourne, S.J. and Xiao, B. (2008), "A powerful test for linearity when the order of integration is unknown," Studies in Nonlinear Dynamics and Econometrics 12(3): 1-24.