GlucoseIQ

Metrics Reference

Every metric in GlucoseIQ, with its function, formula source, and citation.

Every formula traces to a published source and is golden-tested against reference values (including the R iglu package and Nightscout). No invented math, no uncited thresholds.

Time in ranges

FunctionWhat it computesSource
calculateEnhancedTIR5-range TIR (very low / low / in-range / high / very high) with consensus target assessmentBattelino 2019
calculatePregnancyTIRPregnancy TIR (63–140 mg/dL)ADA Standards of Care
calculateTITRTime in Tight Range (70–140, target >50%)Battelino 2019 (emerging consensus)
detectEpisodes≥15-min hypo/hyper events with level, duration, nadir/peakDanne 2017; Battelino 2019

Averages & estimation

FunctionWhat it computesSource
estimateGMIGlucose Management Indicator from mean glucoseBergenstal 2018
estimateA1CFromAverage / estimateAvgGlucoseFromA1CA1C ⇄ eAGNathan 2008
calculateHOMAIRInsulin resistanceMatthews 1985

Variability & risk

FunctionWhat it computesSource
glucoseStandardDeviation / glucoseCoefficientOfVariationSD, CV%ADA 2019
glucoseMAGEMean Amplitude of Glycemic ExcursionsService 1970
glucoseLBGI / glucoseHBGILow/High Blood Glucose IndexKovatchev 2006
calculateADRRAverage Daily Risk RangeKovatchev 2006
calculateGRADEGlycemic Risk Assessment Diabetes EquationHill 2007
calculateGRIGlycemia Risk Index with A–E zonesKlonoff 2023
calculateJIndexComposite mean + variabilityWojcicki 1995
calculateMODDMean Of Daily DifferencesService 1980
calculateCONGAContinuous Overall Net Glycemic ActionMcDonnell 2005
glucoseMValueSchlichtkrull M-value (with/without W correction)Schlichtkrull 1965
calculateIGCRodbard hypo/hyper index + Index of Glycemic ControlRodbard 2009 (+ erratum)
calculateGVIPGSGVI + Patient Glycemic Status (Nightscout parity)Rodbard; Nightscout
glucoseMAGMean Absolute Glucose change per hourHermanides 2010
glucoseGVPGlycemic Variability PercentagePeyser 2018
calculateActivePercentCGM wear timeDanne 2017
calculateAGPMetricsAll of the above scalars in one call

Series & events

FunctionWhat it computes
buildAGPProfileTime-of-day percentile bands (5/25/50/75/95) — the AGP chart's data
analyzeMealResponseBaseline, peak, delta, time-to-peak, return-to-baseline, iAUC
glucoseAUC / incrementalAUCTrapezoidal AUC; Wolever 4-case iAUC above baseline
computeGlucoseTrendRate-of-change + trend classification (Dexcom-style thresholds)
detectGaps / splitDayNight / alignToGridSensor gaps, nocturnal split, uniform-grid resampling
aggregateCohortPopulation distributions of TIR/GMI/CV/mean across patients

The unit-safety guarantee

Metrics calibrated for mg/dL (LBGI/HBGI, GRADE, J-Index, M-value, IGC, GVI/PGS) accept a unit option and convert mmol/L input before applying the formula — passing mmol/L values can never silently produce clinically invalid output.

On this page