GV {rGV}R Documentation

Calculate all glycemic variability metrics

Description

Calculate all glycemic variability metrics

Usage

GV(
  x,
  times,
  unit = "mg",
  m_index = 120,
  k = 60,
  s = 1,
  conga_n = 1,
  interval = 1,
  thresh = 100,
  event_thresh = 55
)

Arguments

x

vector of glucose readings

times

vector of corresponding times, in minutes

unit

"mg" if the units are mg/dL or "mmol" if the units are mmol/L. Null value is "mg".

m_index

a value to be considered a 'standard' blood glucose value for calculation of M-value, in mg/dL. Null value is 120.

k

length of time (in minutes) used to find partners. Null value is 60.

s

number of minutes of slack used when searching for partners. Null value is 1.

conga_n

number of hours between "partner" observations. Null value is 1.

interval

size (in hours) of the moving window to be used if overall is false. Null value is 1.

thresh

threshold above (or below) which you wish to calculate the AUC. Default is 100.

event_thresh

glucoses below this threshold are considered as part of an episode. Default is 55

Value

A data frame containing the entire suite of rGV metrics for the given dataset.

Examples

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)

[Package rGV version 0.0.4 Index]