Validation

Reference cases

The calculator's z-scores come from lookup tables exported from the R models. This page recomputes a set of reference children in your browser and compares every value with R.

Children
—
z-scores checked
—
Largest difference
—
Status
—

How the check works

Ten children were drawn at random (fixed seed) from the reference group for each level of the aorta. For each child, R computed two z-scores: one from the full model (height, weight for height, age and sex) and one from the height-and-sex model used when weight is missing. Those R values come from the exported tables, which were themselves checked against the gamlss fit to within 0.0001.

This page loads the same tables, recomputes all of those z-scores with the calculator's own code, and compares them. A difference under 0.001 counts as a match. The largest difference is on the order of 0.0001, from interpolating between table points and from rounding the R values to four decimals. Model tables dated —.

Cases

LevelSexAge (y)Height (cm)Weight (kg)D (mm) z full, RBrowserΔ z ht+sex, RBrowserΔ

The test cases are in tests/root_bccg_testcases.csv; the R script that made them is R/export_bccg.R.