One synthetic early-phase clinical-pharmacology study, taken end-to-end through the analysis tools — synthetic ADaM → PK/NCA → TLF computations — to exercise the whole pipeline on realistically-shaped data. Base R; deterministic; runs offline.
simulate_adam.R) emits eight ADaM-shaped domains —
ADSL ADEX ADPC ADPP ADAE ADVS ADLB ADEG — with a one-compartment oral PK model + NCA,
a 2×2 bioequivalence crossover option, and per-period safety domains. run_lifecycle.R then
runs the demographics, the PK-NCA (geometric mean, log scale), and the
bioequivalence ANOVA (90% CI) computations on the simulated study.
priors.R, so the
generator runs standalone.
Rscript sim_lifecycle/run_lifecycle.R
simulate_adam.Rsynthetic ADaM generator (base R, priors baked in)
priors.Rdesign + domain priors (hardcoded list)
run_lifecycle.Rdriver: simulate → demographics / PK-NCA / BE-ANOVA
out/adsl.csvone-record-per-participant (ADSL)
out/adpp.csvPK parameters (NCA)
out/adae.csvadverse events
Full generated study (seed 2026): the eight out/*.csv ADaM domains. Output feeds the
SAS and R TLF pseudocode libraries.