From SAS to R in clinical research
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
Stata
data
ChangeLog
Makefile
README.md
congruent_pentagon.png
congruent_pentagon.txt
logo.pdf
main.R
main.pdf
main.rnw
refs.bib
todo.org

README.md

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.

Overview

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.

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).