Calculates the rank-based test statistic for Y and S and the difference, delta, accomodating paired data and allowing for a two-sided test
Useful links