Documentation

11.33 Limits and a validation plan

qc-data is a broad screening and documentation system, not a substitute for source-data verification, protocol review, assay QC, model validation or independent programming.

Important limits

  • Rules depend on configured mappings, scales and thresholds.
  • Plausible but incorrect values may pass.
  • Rare valid designs can warn.
  • Statistical outlier rules lose power in sparse/stratified data.
  • Generated $INPUT/$DATA suggestions do not validate model code.
  • A catalogue version can change; pin nlmx and archive --list-checks/settings.
  • Row filters can exclude defects from the analyzed subset.
  • Finding caps/report page limits can hide detail from a presentation surface.

Validation for software-accuracy work

Because this project aims to reproduce established pharmacometric software while improving speed, validate qc-data against frozen test cases with expected check IDs, statuses, line numbers and counts. Include clean cases, one-defect cases, interacting defects, boundary values and deliberately unsupported formats.

Compare behavior with NONMEM/NM-TRAN where the question is readability, but do not assume identical diagnostics: qc-data intentionally asks higher-level questions that NONMEM may not. Record whether an acceptance criterion is exact ID/status agreement, line-level agreement or justified difference.

Release suite

  1. Freeze fixtures and hashes.
  2. Pin settings and executable identity.
  3. Record the expected 99-check catalogue for this version.
  4. Test every check with positive and negative cases where feasible.
  5. Verify output schemas, checksums and exit codes.
  6. Repeat across supported platforms.
  7. Measure speed only after correctness acceptance.

Common mistakes

  • Validating only the clean dataset.
  • Comparing headline verdicts but not line-level evidence.
  • Mixing catalogue changes with numerical performance changes.
  • Claiming NONMEM equivalence for checks NONMEM does not perform.

Checklist

  • State the validated version and envelope.
  • Preserve failures and edge cases as first-class fixtures.
  • Define exact versus tolerance/semantic acceptance.
  • Separate accuracy, completeness and speed claims.

Further reading

See validation boundary, tolerance-based tests, publication/regulatory QC, and the planned Chapter 42.