Estimation and Testing for the Cointegration Rank in a Threshold Cointegrated System · Study