27.16 Automatic binning
Automatic binning follows natural sampling clusters using exact weighted one-dimensional k-means. It chooses up to max_bins using a 98% between-bin variance rule and a separated-cluster rule, then merges bins below min_obs. When distinct x values do not exceed max_bins, each begins as its own bin.
Novice translation
This topic changes three practical decisions in a predictive-check review. First, tied times are not split and cut points fall between observed values. Second, more than 600 distinct values are pooled into consecutive weighted groups before clustering for efficiency. Third, the algorithm is deterministic, but its bins remain an analytical choice that should be reviewed and reported. 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
- Tied times are not split and cut points fall between observed values.
- More than 600 distinct values are pooled into consecutive weighted groups before clustering for efficiency.
- The algorithm is deterministic, but its bins remain an analytical choice that should be reviewed and reported.
Practical interpretation
Inspect LOWER, UPPER, IDV_MIN/MAX/MEDIAN, and N_OBS in vpc_bins.csv before accepting the visual result.
Evidence to retain
For automatic binning, 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
- Assuming auto means scientifically optimal
- Ignoring merged bins
- Comparing models with different bins
Page checklist
- Review cut points
- Check sampling clusters
- Keep bins fixed across comparisons
- Document max/min settings
Further reading
See previous page, next page, complete VPC command and settings index.