m_value {rGV}R Documentation

Calculate M-value

Description

Calculate M-value

Usage

m_value(x, unit = "mg", index = 120, method = "manuscript")

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".

index

value to be considered a 'standard' blood glucose value, in mg/dL. Null value is 120.

method

"manuscript", "corrected", or "easy". Null value is "manuscript".

Value

The numeric M-value for a given dataset of glucose measurements.

Examples

m_value(x=c(rep(100, 10), rep(120, 10), 105, 85), unit='mg', index=120, method='manuscript')

[Package rGV version 0.0.4 Index]