Planning controlled clinical trials