Analysis

From analysis-ready dataset to results

Published

July 2, 2026

Warning

Under development.

Once you have assembled your analysis dataset (Phase 12), you are ready to analyse. This section stays register-specific and practical: when to use what, which packages, and a minimal example - it does not teach statistical theory. For depth, see the Epidemiologist R Handbook, R for Data Science and DDEA’s R course (see Learning resources).

Pages in this section

Pick the pages that fit your study - not every study uses all of them.

Page Packages
Choosing a statistical analysis stats (base R; choose test and model)
Descriptive tables (Table 1) gtsummary, finalfit
Figures for publication ggplot2
Regression glm/lm, survival::clogit (matched case-control)
Time-to-event survival, survminer, tidycmprsk (Cox, competing risks)
Rates and rate ratios (Poisson) glm (Poisson), MASS::glm.nb, Epi/popEpi (incidence rate ratio, person-time)
IP weighting (IPTW and IPCW) WeightIt, cobalt (confounding + censoring/missing outcomes)
Sensitivity analyses survival (robustness checks, negative control outcome, active comparator)
Note

Remember: anything leaving DST must go through output control - no small cells, only aggregated results. See Phase 14 - Export and repatriation.

Back to top