TEAE Summary Table in SAS and R: Subjects vs Events by SOC and PT
In a TEAE summary table, each cell counts subjects , not events. A subject with three headaches counts once for Headache and once for its system organ…
Practical SAS, R and CDISC programming tutorials for clinical trial programmers, with working code.
In a TEAE summary table, each cell counts subjects , not events. A subject with three headaches counts once for Headache and once for its system organ…
SAS ROUND() and SAS formats round an exact half away from zero: 6.25 becomes 6.3. R's round() rounds an exact half to the even digit: 6.25 become…
As of 17 November 2026, the latest published CDISC versions are SDTMIG v3.4 , SDTM v2.1 , ADaMIG v1.3 , Controlled Terminology P62 (25 September 2026), …
The Clinical Study Data Reviewer's Guide (cSDRG) is the SDTM half of the reviewer's guide pair. It sits next to your SDTM datasets and define…
The define.xml tells a reviewer what is in your ADaM datasets. The Analysis Data Reviewer's Guide (ADRG) tells them why it looks that way: how yo…
An ADaM program runs fine for months, then a new data cut arrives and the log shows Variable AETOXGR is uninitialized , or in R, object 'AETOXGR…
Every programming team has a story about the dataset that got overwritten. Someone ran a test program against the production library, or a copied pro…