Learn R Programming

cgmquantify (version 0.1.0)

MGE: Compute Mean of Glycemic Excursions

Description

This function computes the mean of glycemic excursions, glycemic excursions indicated by standard deviation, default = 1

Usage

MGE(df, sd = 1)

Arguments

df

Data frame read through readfile

sd

Standard deviation indicating glycemic excursion, default = 1

Value

A numeric value representing MAGE

Examples

Run this code
# NOT RUN {
mydatafile <- system.file("extdata", "my_data_file.csv", package = "cgmquantify")
mydata <- readfile(mydatafile)
MGE(mydata)
# }

Run the code above in your browser using DataLab