The rank analogue of product-moment partial correlation and regression, with application to manifold, ordered contingency tables