mage: Calculate Mean Amplitude of Glycemic Excursions (MAGE)

View source: R/metrics.R

mageR Documentation

Calculate Mean Amplitude of Glycemic Excursions (MAGE)

Description

Calculate Mean Amplitude of Glycemic Excursions (MAGE)

Usage

mage(x, times)

Arguments

x

vector of glucose readings

times

vector of corresponding times, in minutes

Value

The numeric MAGE value for a given dataset of glucose measurements and times.

Examples

mage(x=c(rep(100, 10), rep(120, 10), 105, 85), times=seq(0, 1260, 60))

rGV documentation built on April 4, 2025, 5:58 a.m.

Related to mage in rGV...