Documentation

43.9 EDA: seeing the data

Four small chart panels and three tiles describing the standard plots, tables and custom views

What you will learn

  • What the 24 standard plots and 10 standard tables show.
  • How columns are given roles, and how derived columns are added.
  • How custom plots and tables extend the standard set.

Looking at data the way a pharmacometrician does

EDA answers: how do concentrations behave over time and dose, how are covariates distributed and correlated, where are values missing or below the limit, and what is in each study arm. It runs one command, nlmx eda, with a form built around nine sections.

The nine sections

Section What it sets
1 Dataset The file (comma, tab, semicolon or space separated), a column profile, the run name, and the table viewer to browse every row before you run.
2 Columns and roles ID, TIME, DV, AMT, EVID; the endpoint column; nominal time, TAD; the BLQ flag, LLOQ, log DV; groups for colour, strata for panels, covariates, categorical and time-varying columns.
3 Select and derive Filters and derived columns in R syntax, such as BMI = WT / (HT/100)^2.
4 Standard plots P01 to P24 by category, as checkboxes. The observed-exposure plots P18 to P20 are off by default, as in nlmx.
5 Standard tables T01 to T10.
6 Appearance Scales, centre and error bars, units, individual-plot layout, picture format, size and dpi, caption.
7 More settings Options that exist only in a settings file: smoother, LOESS span, time bins, exposure basis, digits, output files.
8 and 9 Custom plots and custom tables.

The right-hand column shows the exact command and the settings file being built, so a form session becomes a reusable settings file.

Standard plots and tables

The 24 plots fall into six families: concentration profiles (P01 to P03), summary and dose plots (P04 to P07), sampling, dosing and BLQ plots (P08 to P11), covariate plots (P12 to P17), observed-exposure plots (P18 to P20, off by default), and data, PK-PD and time-varying plots (P21 to P24). The 10 tables cover data summary, missingness and subjects (T01, T09, T10), demographic and covariate tables (T02, T03), dosing and observations by time (T04, T05), and exposure and correlation tables (T06 to T08). Output is organised by category in the Figures and Tables tabs, with multi-page plots paged. Chapter 13 of this book describes every plot and table in detail.

Custom plots and tables

Beyond the standard set, you can add your own:

  • Custom plots: scatter, line, summary, box, histogram, bar, correlation, pairs, and PK/PD plots, with colour, panels and scales you choose.
  • Custom tables: summary, count and listing tables.

These use the same derived columns and filters as the standard ones, so a covariate you create once (such as BMI or log DV) is available everywhere. For anything beyond these, the Plot builder and the R terminal (see R in the browser and the Plot builder) go further without leaving the run.

What you get

  • An overview: the figures and tables made, what was left out, subjects and observations.
  • Figures by category with zoom and multi-page plots.
  • Tables, and the subject list in a searchable grid.
  • The nlmx HTML report and the text summary.
  • Files, every output, with a zip.

Plots or tables that nlmx could not make are listed under Left out with the reason, so an empty panel is never a mystery.

Compare two runs

Expand and Compare show the figures and tables made, the settings that differ, tables and figures side by side. A typical use: the same dataset with and without a filter, to see how an outlier changes a distribution.

Reading EDA results

  • Profiles that cross or jump point to time or dose coding errors, which QC then confirms.
  • Skewed or correlated covariates warn of collinearity in the covariate search.
  • Missingness summaries tell you whether a covariate can be used at all.
  • BLQ plots tell you whether a BLQ method matters.

EDA is where intuition meets the data, and it is deliberately fast: a form, a click and a gallery.

See the previous page, next page, and the chapter overview.