Learn R Programming

rGV (version 0.0.5)

m_value: Calculate M-value

Description

Calculate M-value

Usage

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

Value

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

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

Examples

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

Run the code above in your browser using DataLab