powered by
Calculate all glycemic variability metrics
GV( x, times, unit = "mg", m_index = 120, k = 60, s = 1, conga_n = 1, interval = 1, thresh = 100, event_thresh = 55 )
A data frame containing the entire suite of rGV metrics for the given dataset.
vector of glucose readings
vector of corresponding times, in minutes
"mg" if the units are mg/dL or "mmol" if the units are mmol/L. Null value is "mg".
a value to be considered a 'standard' blood glucose value for calculation of M-value, in mg/dL. Null value is 120.
length of time (in minutes) used to find partners. Null value is 60.
number of minutes of slack used when searching for partners. Null value is 1.
number of hours between "partner" observations. Null value is 1.
size (in hours) of the moving window to be used if overall is false. Null value is 1.
threshold above (or below) which you wish to calculate the AUC. Default is 100.
glucoses below this threshold are considered as part of an episode. Default is 55
GV(x=c(rep(100, 10), rep(120, 10), 105, 85), times=seq(0, 1260, 60), unit='mg', m_index=120, k=60, s=1, conga_n=1, interval=1, thresh=100, event_thresh=55)
Run the code above in your browser using DataLab