In reply to Ryan.

No, my code does not support repeated measurements. With respect to Njoya and Hemyari, I don't think their code treats repeated measurements properly. They "handle" repeated measurements by using stratified sampling. This ensures that number of observations for each patient in the same for every bootstrap sample. So if Patient 1 has 10 observations, each bootstrap sample also has 10 obs for Patient 1. But if the measurements for Patient 1 were increasing (or decreasing) in the real data, that property is not preserved in the samples. A stratified sample merely preserves the number of observations, not any autocorrelation.