rankByGroup function

Determine the norm scores of the participants in each subsample