Documentation

21.2 Define the diagnostic population before interpreting a plot

The diagnostic population is the set of rows represented in a figure or summary. It is not automatically identical to the source dataset, the estimation dataset, or every row in predictions.csv. Understanding the differences prevents false conclusions.

Standard nlmx GOF scatter plots use eligible Gaussian observations with F_FLAG = 0. Dose and other event records are not observations. Missing observations governed by MDV do not contribute a residual. General-likelihood records such as some M3 BLQ contributions have blank standard residuals and are omitted from the standard GOF plots because their likelihood is not represented by an ordinary continuous residual.

By default, observations taken before any drug has been given are excluded when the model predicts zero there. They remain traceable with EXCL = 1, PRED and IPRED equal to zero, blank residuals, and details in no_drug_records.csv. They should not be silently converted to residual zero. A model with an endogenous baseline or $PRED likelihood may legitimately retain such rows.

Eligibility determines whether a residual is defined

GOF filtering and log axes further change the displayed set. --gof-filter selects rows for plots without changing the fit or predictions.csv. A log x or y axis cannot display nonpositive values. Stratified sets may have different x ranges and sample sizes. Every diagnostic caption or review note should therefore state the plotted observation count and any filter, endpoint, stratum, transformation, or exclusion policy.

Create a record-accounting table with source rows, included Gaussian observations, likelihood records, predose exclusions, missing observations, event rows, and subjects. Reconcile it to the fit summary and plot captions before discussing trends.

Common mistakes

  • Assuming blank residuals are software failures.
  • Counting event records as fitted observations.
  • Forgetting that log axes remove nonpositive points.
  • Interpreting a filtered figure as the complete fit.
  • Comparing two runs with different diagnostic populations.

Checklist

  • Reconcile source, estimation, prediction, and plotted row counts.
  • Review FFLAG, EXCL, EVID, MDV, and DVID.
  • State filters, transformations, strata, and axis exclusions.
  • Investigate unexpected predose or likelihood-record counts.
  • Preserve an unfiltered overview with focused views.

Further reading

See predose and FFLAG handling, filtering, and multi-endpoint diagnostics.