Classical analysis of clinical trials and medical data using R
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.
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.
About the PDF
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 $\LaTeX$ template without much sophistication is used. I may update the default layout at some point (because nobody likes default templates).