auc_calc: Calculate Area Under the Curve of glucose values for a...

View source: R/calc_util.R

auc_calcR Documentation

Calculate Area Under the Curve of glucose values for a restricted timeframe

Description

Returns AUC for the first timelength minutes after the start of the glucose_df. See Brouns, F., Bjorck, I., Frayn, K., Gibbs, A., Lang, V., Slama, G., & Wolever, T. (2005). Glycaemic index methodology. Nutrition Research Reviews, 18(1), 145-171. doi:10.1079/NRR2005100

Usage

auc_calc(glucose_df, timelength = 120)

Arguments

glucose_df

dataframe of glucose values

timelength

number of minutes to look ahead for the AUC calculation


personalscience/cgmr documentation built on July 2, 2023, 12:47 a.m.