Compute confidence intervals for repeated measures data