13A.28 Statistics, quantiles, missingness, and denominators
The statistics catalogue includes counts, missing counts, arithmetic and geometric summaries, spread, percentiles, confidence limits, and combined clinical display strings. Quantiles use type 7 interpolation. Density uses Silverman's bandwidth. These implementation details matter when comparing output with R, Python, SAS, or established reporting software.
n is the count of usable values for a variable; nmiss counts missing values. Mean, SD, SE, CV, median, min, max, sum, quartiles, IQR, confidence bounds, and pNN operate on available values. Geometric summaries require positive values. Combined strings such as mean_sd, median_range, and geomean_cv format related statistics together.
Categorical percentages in demographics use nonmissing values within the variable and group, with a separate Missing row. Frequency-table percentages use the explicitly requested row, column, or total denominator. Plot percentages depend on retained layer rows. Never assume one denominator applies across outputs.
Missing x or y values are omitted from layers that require them. Missing facet values are not drawn. A plot can therefore contain fewer rows than the table; custom_summary.json records per-item row counts, but analytical reviewers should also count usable values for each mapped variable.
Denominator review should be written, not inferred: “N is subjects with nonmissing baseline WT,” “percent is within treatment among nonmissing SEX,” or “plot has observation records with positive DV.” These short statements prevent the most common discrepancy between technically correct output and incorrectly interpreted output.
Common mistakes
- Comparing quantiles from different algorithms without noting type.
- Treating missing as zero.
- Reporting CV where the mean is near zero.
- Hiding denominator changes behind percentages.
Checklist
- Record statistic definitions and quantile type.
- Report n and nmiss where relevant.
- Verify positivity for geometric measures.
- State percentage denominator.
- Reconcile plot rows with table counts.
Further reading
See summary tables, frequency denominators, input missing tokens, and validation.