safetyData is an R package with sample CDISC clinical trial data sets.
The package reformats PHUSE’s sample ADaM and SDTM datasets as an R package following R data best practices.
PHUSE released the data under the permissive MIT license, so reuse with attribution is encouraged. The data are especially useful for prototyping new tables, listings and figures and for writing automated tests.
Basic documentation for each data file is provided in help files
(e.g. ?adam_adae
). Full data specifications in the form of
define.xml
files can also be found at the links above (pdf
for ADaM and pdf
for SDTM).
All data sets are provided with a prefix specifying the data format
(adam_xxx
or sdtm_xxx
) and can be accessed
using standard methods:
install.packages(safetyData)
library(safetyData)
head(safetyData::adam_adlb)
table(safetyData::sdtm_ta$arm)
Thanks to PHUSE and it’s member organizations for releasing the data.