Documentation

27.23 Filter versus stratification

Filtering changes the population by removing whole subjects, whereas stratification retains eligible observations and separates summaries into panels. Choose filtering for an eligibility or target-population question and stratification for heterogeneity or endpoint questions. Combining them is valid when both choices are prespecified and documented.

Filter versus stratification

Novice translation

This topic changes three practical decisions in a predictive-check review. First, a baseline renal-impairment subset is a filter question when only that population is in scope. Second, wT or dose panels are stratification questions when differences across the full population matter. Third, filtering after seeing a global discrepancy risks selection bias and should be labelled exploratory. 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

  • A baseline renal-impairment subset is a filter question when only that population is in scope.
  • WT or dose panels are stratification questions when differences across the full population matter.
  • Filtering after seeing a global discrepancy risks selection bias and should be labelled exploratory.

Practical interpretation

Compare subject and observation counts before and after filtering; the design and uncertainty of the VPC have changed.

Evidence to retain

For filter versus stratification, 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

  • Using filter to make a plot look better
  • Failing to restate the estimand
  • Confusing baseline and record-level values

Page checklist

  • Name scientific population
  • Choose selection vs comparison
  • Report counts
  • Label exploratory subsets

Further reading

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