Time series analysis of error-correction models