The function AdjustedRandIx calculates adjusted Rand index (a measure of similarity of two clusterings) of the two variables described by their contingency table ContTab. Note: Though the Rand index is limited to the interval [0,1] the adjusted Rand index may become negative if the calculated Rand index is less than the expected index.