powered by
Calculate M-value
m_value(x, unit = "mg", index = 120, method = "manuscript")
The numeric M-value for a given dataset of glucose measurements.
vector of glucose readings
"mg" if the units are mg/dL or "mmol" if the units are mmol/L. Null value is "mg".
value to be considered a 'standard' blood glucose value, in mg/dL. Null value is 120.
"manuscript", "corrected", or "easy". Null value is "manuscript".
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