Simulation for study design