auc_calc_components: Helper to calculate Area Under the Curve of glucose values...

View source: R/calc_util.R

auc_calc_componentsR Documentation

Helper to calculate Area Under the Curve of glucose values for a restricted timeframe

Description

Returns each segment of the 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_components(glucose_df, timelength = 120)

Arguments

glucose_df

dataframe of glucose values

timelength

number of minutes to look ahead for the AUC calculation

Value

a vector of the AUC values for each segment of the curve.


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