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

Description Usage Arguments Value

View source: R/psi_calc_util.R

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

1
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/psi-shiny-cgm documentation built on Dec. 22, 2021, 7:43 a.m.