which_rank function

Extractor for the selected rank in the test statistic