We assume that some consistent estimator beta of an equilibrium relation between non-stationary series integrated of order d is an element of (0.5, 1.5) is used to compute residuals u(t) = y(t) - beta x(t) (or differences thereof). We propose to apply the semiparametric log-periodogram regression to the (differenced) residuals in order to estimate or test the degree of persistence 6 of the equilibrium deviation it,. Provided converges fast enough, we describe simple semiparametric conditions around zero frequency that guarantee consistent estimation of delta. At the same time limiting normality is derived, which allows to construct approximate confidence intervals to test hypotheses on delta. This requires that d - delta > 0.5 for superconsistent, so the residuals can be good proxies of true cointegrating errors. Our assumptions allow for stationary deviations with long memory, 0 <= 5 <= 0.5, as well as for non-stationary but transitory equilibrium errors, 0. 5 < delta < 1. In particular, if x(t), contains several series we consider the joint estimation of d and delta. Wald statistics to test for parameter restrictions of the system have a limiting chi(2) distribution. We also analyse the benefits of a pooled version of the estimate. The empirical applicability of our general cointegration test is investigated by means of Monte Carlo experiments and illustrated with a study of exchange rate dynamics. (c) 2005 Elsevier B.V. All rights reserved.