Returns one of five small, made-up tables from a simulated clinical trial
of 48 subjects: demographics, exposure (dosing), lab results, adverse events
or vital signs. Set cutoff_date to get the data as it stood on that date,
which mimics a new data delivery each month; datom_example_cutoffs() lists
the dates the examples use.
Usage
datom_example_data(
domain = c("dm", "ex", "lb", "ae", "vs"),
cutoff_date = NULL
)Arguments
- domain
One of
"dm"(demographics, 48 rows),"ex"(exposure, 48 rows),"lb"(labs, 720 rows: 3 visits x 5 tests per subject),"ae"(adverse events, ~80 rows), or"vs"(vital signs, 432 rows: 3 visits x 3 tests per subject, taken on the same dates as the labs).- cutoff_date
Optional date string (
"YYYY-MM-DD") to filter rows whose primary date column is on or before this date, simulating a point-in-time EDC extract. The date column used per domain:RFSTDTC(dm),EXSTDTC(ex),LBDTC(lb),AESTDTC(ae),VSDTC(vs).