MaatiRx

Validation

Educational model, not for clinical dosing. This page checks that MaatiRx solves its own model correctly. It does not show that the model predicts real patients. The model itself, equation by equation, is in Model and methods.

Running the checks in your browser…
The 146 scenarios' peaks, troughs, areas and times in window, the 20 Bayesian estimates' clearance and volume, the 12 antimicrobial regimens' fT>MIC, Cmax/MIC and AUC24/MIC, the 15 indirect responses at five times and at their largest change, and the 15 dialysis scenarios' levels and sessions are being compared with the independent solver's, to the tolerances below. The largest difference in each group will show here.
The date of the reference run, the Python, NumPy and SciPy versions it used, and the engine file checked will show here when the checks finish.

What is checked

Published worked examples aren't included: none could be checked against an accessible source.

Results

Each scenario: the reference value, MaatiRx's, and the difference.
ScenarioPeak (ref)Peak ΔTrough (ref)Trough ΔAUC (ref)AUC ΔIn window (ref)Δ ppWithin

Bayesian estimates (MAP)

Each scenario: the prior (the patient model's clearance and volume), the reference MAP estimate, MaatiRx's, and the difference.
ScenarioLevelsCL prior (L/h)CL MAP (ref)CL ΔV prior (L)V MAP (ref)V ΔWithin

Antimicrobial PK/PD indices

Each regimen at steady state: the reference value, MaatiRx's, and the difference.
RegimenfT>MIC (ref)Δ ppCmax/MIC (ref)ΔAUC24/MIC (ref)ΔWithin

Indirect responses

Each scenario: the response (% of baseline) at its largest change, when that comes, and the largest difference at five times.
ScenarioLargest change (ref, %)ΔWhen (ref, h)Δ hWorst of 5 timesWithin

Hemodialysis

Each scenario: the largest difference in the level at six times, and in each session's levels and the amount it removed.
ScenarioSessionsFirst session removes (ref)Worst level ΔWorst session ΔWithin

How to reproduce

node --test tests/                      # the engine, the cases and this comparison (Node 20, no dependencies)
python3 -m pip install numpy scipy
python3 validation/reference.py         # regenerates validation/reference-results.json

This page runs the same comparison as tests/validation.test.js in your browser, with the engine the site ships.