Clinical Trial Analysis in R