Various examples taken from SAS and reproduced in R.
Be aware this is raw and unedited alpha release.
Statistical analyses are based on the following textbook:
A Dmitrienko, G Molenberghs, C Chuang-Stein, and W Offen. Analysis of Clinical Trials Using SAS: A Practical Guide. SAS Institute Inc., Cary, NC, USA, 2005.
This book covers various topics: analysis of efficacy and safety study with continuous, categorical or censored endpoints, interim analysis, incomplete data, and multiple testing issues (including gatekeeping strategies). I may (or may not) include extra material from additional textbooks like Common Statistical Methods for Clinical Research with SAS, Modern Approaches to Clinical Trials Using SAS, or Pharmaceutical Statistics Using SAS.
All analyses were carried out using the latest version of R (3.2.* series). The following R packages are used throughout the document: ggplot2, reshape2, plyr, Hmisc, rms, coin, car.
In addition to Hmisc::latex, the xtable package is occasionally used to produce nice looking tables.
The R code is available as a standalone file in the main repository.
The final output is currently generated using the simplest Makefile I could imagine and knitr which does all the work in the background. For the moment, a classic