Documentation

27.13 Percentile definition and selection

nlmx uses Hyndman–Fan type 7 linear interpolation, matching common R and PsN behavior. The default [5,50,95] describes a median and broad tails. One to seven percentiles may be requested; a single width such as --pi 90 expands to 5, 50, and 95.

Percentile definition and selection

Novice translation

This topic changes three practical decisions in a predictive-check review. First, percentiles are calculated separately by bin, stratum, and replicate using the same record membership. Second, extreme percentiles require adequate observations; a 5th percentile from a small stratum is driven by very few records. Third, choose percentiles before inspection and align them with the endpoint distribution and reporting purpose. Keep those decisions separate: one defines what is simulated or summarised, another controls how evidence is displayed, and the last controls what conclusion the evidence can support. A reviewer should be able to reproduce each decision from the resolved settings and numerical tables, not infer it from the appearance of the figure.

What to understand

  • Percentiles are calculated separately by bin, stratum, and replicate using the same record membership.
  • Extreme percentiles require adequate observations; a 5th percentile from a small stratum is driven by very few records.
  • Choose percentiles before inspection and align them with the endpoint distribution and reporting purpose.

Practical interpretation

Record the exact PI list because changing 5/95 to 10/90 changes sensitivity to tails and the expected Monte Carlo stability.

Evidence to retain

For percentile definition and selection, retain the issued command, vpc_settings.vpc, the source model/data/result identifiers, seed and replicate count, the relevant CSV/JSON fields, warnings and notes, and the exact figure used for interpretation. Record any sensitivity run that changed the conclusion. If an option was selected after seeing the data, label that analysis exploratory. This evidence separates a reproducible diagnostic decision from a visual impression and lets another pharmacometrician check counts, transformations, exclusions, and uncertainty assumptions.

Common mistakes

  • Requesting too many percentiles
  • Interpreting tail estimates from tiny bins
  • Confusing VPC percentiles with NPC PI widths

Page checklist

  • State quantile algorithm
  • Predefine percentile list
  • Check N_OBS
  • Use stable tails

Further reading

See previous page, next page, complete VPC command and settings index.