Documentation

Chapter 27 — vpc: visual and numerical predictive checks

nlmx vpc evaluates whether replicated datasets generated by a fitted population model reproduce important features of the observed data. It supports plain VPC, prediction-corrected VPC, prediction- and variability-corrected VPC, and numerical predictive checks; automatic or prespecified bins; categorical and continuous stratification; subject filters; TIME, TAD, PRED, or custom x variables; LLOQ/BLQ handling; covariance or empirical parameter uncertainty; self-contained reports; publication figures; and complete machine-readable evidence.

Primary Chapter 27 prediction-corrected VPC

What you will learn

  • what nlmx simulates and what remains fixed from the observed design;
  • how VPC, pcVPC, pvcVPC, and NPC differ;
  • how percentiles, simulated confidence bands, outside flags, and coverage are calculated;
  • how every binning, stratification, filtering, x-axis, censoring, and parameter-uncertainty option changes the question;
  • how to read location, variability, timing, subgroup, and BLQ patterns without overstating them; and
  • how to preserve and report a reproducible predictive-check evidence bundle.

Prerequisites: Read Chapter 20 for fit execution, Chapter 21 for residual and GOF diagnostics, and Chapter 26 for the fitted covariate model used in the examples.

Executed nlmx 4.14.3 evidence

Six workflows were executed on 2026-11-10 and preserved under documents/ch27/results:

  1. a 300-replicate primary pcVPC with saved simulations;
  2. a 200-replicate pvcVPC crossed by SEX and two WT groups using TAD;
  3. a plain VPC with 200 covariance-based parameter draws, explicit edges, and 90% bands;
  4. a nominal-bin pcVPC with a fixed LLOQ of 0.2 and a BLQ panel;
  5. a 300-replicate tables-only NPC; and
  6. a 200-replicate pcVPC of the earlier base model, stratified by WT and EGFR to expose missing-covariate patterns.

The primary pcVPC had one borderline outside median among 24 percentile comparisons and no overall NPC flags. The earlier model without WT/EGFR effects had 16 outside percentile comparisons across four strata and strongly directional coverage failures in some cells. This contrast is teaching evidence, not a formal covariate-selection test. All examples use finite simulation counts and must be interpreted with their tables, strata sizes, and diagnostic context.

How to use the chapter

New users should read pages 27.1–27.15, then pages 27.16–27.26 for bins, strata, filters, axes, and censoring. Pages 27.27–27.30 cover parameter uncertainty and Monte Carlo stability. Report authors can begin with the complete command and settings index, output schemas, publication controls, and worked pages 27.37–27.42.

This chapter describes nlmx 4.14.3. Predictive checks assess compatibility under simulated conditions; they do not prove model truth, covariate causality, or performance in untested populations and designs.