Skip to contents

Calculates Glucose Color Index (GCI)

Usage

calculate_GCI(x, weights, means, stddevs, ...)

Arguments

x,

dataframe with raw CGM time series or object of class "6DF_summary" containing 6-DF representation of log-periodogram

weights,

numeric vector of weights used to form the GCI linear combination

means,

numeric vector of mean values for the 6 degree of freedom approximation, subtracted away before calculation of GCI

stddevs,

numeric vector of standard deviations for each of the values within the 6 degree of freedom approximation, used for scaling before GCI calculation

...,

additional arguments/settings required

Value

gci, numeric containing the Glucose Color Index variability metric value

Details

Using weights, defaulting to those derived from analysis of the repeat CGM wears in the HYPNOS trial, generates the GCI as a weighted linear combination of the 6 degree of freedom disjoint piece-wise linear approximation of the log-periodogram.