Gregory-Hansen test for cointegration with regime shifts Use ghansen With STATA 17