Email zadetek: Rank correlation under categorical confounding