Documentation

8.19 Accuracy boundaries and review checklist

The implemented engine has strong internal consistency: one compiled program drives prediction, likelihood and simulation; linear systems have analytic/matrix propagation; ODE solvers are adaptive; ETA gradients use forward-mode AD; and failures are explicit. These properties support accuracy, but they are not a blanket claim of equivalence to NONMEM or another platform.

What requires separate validation

Build a matrix across:

  • every supported ADVAN/TRANS combination and parameter synonym;
  • bolus, fixed/modelled infusion, lag, bioavailability and scales;
  • ADDL, SS1/SS2, constant infusion, reset and tied-time ordering;
  • $PRED, $PK/$ERROR, $DES, branches, protected functions and model events;
  • FO, FOCE, FOCE-I, Laplace and F_FLAG records;
  • values, ETA gradients, EPS sensitivities and Hessians;
  • nonstiff, stiff, near-zero, coincident-rate and failure cases;
  • Windows/Linux/macOS and representative thread counts.

Error budgets

Separate parser/semantic disagreement, analytic roundoff, ODE discretisation, derivative approximation, optimizer convergence and report rounding. A single relative tolerance is unsuitable near zero; use paired absolute/relative criteria and parameter-scale-aware thresholds.

Pre-register tolerances before viewing the comparison. Report failures, not only maxima from passing cases. When another program disagrees, reduce to one subject, one event interval and one model feature before attributing the difference to an estimator.

Known boundaries

Verbatim Fortran and user routines are unsupported. Some directives are accepted but ignored. Mixture-related special values are simplified. Ordinary compartments cannot be turned off with negative CMT. F_FLAG likelihood models are not directly generative in dataset simulation. EPS derivatives and Laplace Hessians involve finite differences. These constraints must appear in compatibility claims.

Release review checklist

  • Parser corpus passes positive and negative fixtures.
  • ADVAN/TRANS matrices match independent derivations.
  • Event timelines match row-level references.
  • ODE tolerance-convergence and stiff tests pass.
  • AD gradients match finite-difference sweeps away from boundaries.
  • Simulation uses frozen seeds, streams and parameter sources.
  • Every comparison records versions, hashes and effective settings.

Common mistakes

  • Reporting speed without matched accuracy controls.
  • Averaging away a severe edge-case error.
  • Treating unsupported syntax as a documentation inconvenience.

Checklist

  • Define the compatibility claim narrowly.
  • Preserve failures and boundary cases.
  • Gate releases on accuracy and performance separately.

Further reading

The recommended next chapter is Chapter 9, numerical core and reproducibility. Chapters 40 and 42 will consolidate cross-software limits and formal validation.