mag {rGV} | R Documentation |
Calculate Mean Absolute Glucose (MAG)
Description
Calculate Mean Absolute Glucose (MAG)
Usage
mag(x, times)
Arguments
x |
vector of glucose readings |
times |
vector of corresponding times, in minutes |
Value
The numeric MAG value for a given dataset of glucose measurements and times.
Examples
mag(x=c(rep(100, 10),rep(120, 10), 105, 85), times=seq(0, 1260, 60))
[Package rGV version 0.0.4 Index]