A tibble object with a column for subject id and a column for MAG values is
returned.
The glucose values are linearly interpolated over a time grid starting at the
beginning of the first day of data and ending on the last day of data. Then, MAG
is calculated as \(\frac{|\Delta BG|}{\Delta t}\) where \(|\Delta BG|\) is
the sum of the absolute change in blood glucose calculated for each interval as specified
by n, default n = 60 for hourly change in blood glucose. The sum is then divided by
\(\Delta t\) which is the total time in hours.