gmi {rGV}R Documentation

Calculate Glucose Management Indicator (GMI)

Description

Calculate Glucose Management Indicator (GMI)

Usage

gmi(x, unit = "mg")

Arguments

x

vector of glucose readings

unit

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

Value

The numeric GMI value for a given dataset of glucose measurements.

Examples

gmi(x=c(rep(100, 10), rep(120, 10), 105, 85), unit='mg')

[Package rGV version 0.0.4 Index]