Calculate the mean and sd of the reference samples
S2 analysis