Calculation of z-scores and percentile ranks