Cohort
Population metric distributions across many patients.
1 function
Generated from the source TSDoc — every signature, parameter, and example is the real thing.
aggregateCohort
aggregateCohort(patients: GlucoseReading[][], options?: CohortOptions): CohortResultAggregates per-patient glucose metrics across a cohort.
| Parameter | Description |
|---|---|
patients | One reading array per patient |
options | Unit for TIR validation |
Returns — Distributions of TIR, GMI, CV, and mean glucose across the cohort
const cohort = aggregateCohort([patientA, patientB, patientC])
cohort.tir.median // 68.5 — median in-range % across the population