Documentation

Chapter 13. eda: exploratory data analysis

Exploratory data analysis is the bridge between a checked dataset and a defensible modelling plan. nlmx eda creates pharmacometric profiles, sampling and dosing views, covariate diagnostics, observed-exposure summaries, PK-PD views, tables, and a navigable HTML report without requiring a fitted model.

EDA workflow from preparation to follow-up

Figure 13.1. EDA transforms and describes a dataset, reveals questions, and preserves evidence; it does not by itself confirm a model.

Novice promise

This chapter assumes you know what rows and columns are but may not yet know why a spaghetti plot, log axis, error bar, or exposure calculation can mislead. Each page explains what an output uses, how to read it, what can go wrong, and which follow-up check should come next.

Scope and evidence

Behavior was checked against the installed help, the --list-plots catalogue, and the annotated .eda template. The frozen worked evidence was produced with the locally available nlmx 4.3.0 executable. pytools/ch13_examples.py creates a deterministic teaching dataset and writes the complete result under documents/ch13/results.

The worked run has 24 individuals, 192 records, 168 observations, 24 doses, and 19 BLQ observations. It renders 28 standard/custom plot entries and 11 tables; P22 is omitted because only one DVID exists, and P23 is omitted because there is no PD DVID. Those omissions are evidence, not errors.

Thirty Markdown pages

This overview plus 29 pages cover:

  • 13.0: every command form and applicable CLI option;
  • 13.1–13.7: first use, data roles, transformations, grouping, and covariates;
  • 13.8–13.14: all 24 standard plots;
  • 13.15–13.18: all 10 standard tables;
  • 13.19–13.24: statistical presentation, export, settings, and custom analyses;
  • 13.25–13.28: derived columns, outputs, worked evidence, limits, and validation.

Catalogue map

Map of the standard plot and table catalogue

Figure 13.2. Stable P and T identifiers make plot/table selection and review reproducible.

Central rule

Treat every pattern as a question with competing explanations. A high concentration can be a real subject, a wrong dose, a unit error, an early sample, or a transcription defect. Use subject listings, source records, sensitivity analyses, and later model diagnostics before turning an exploratory shape into a scientific conclusion.