I have a column \'test\' of observations and would like to know the rank (or percentile) of each test value wrt a reference column \'ref\', i.e. what would be its rank/perce