Rcpp CONGA Calculation
conga_rcpp.RdCalculates Continuous Overall Net Glycemic Action (CONGA) with an Rcpp backend.
Arguments
- data
A dataframe containing CGM data with columns
id,time, andgl.- n
Whole number of hours separating paired glucose observations. Defaults to 24.
- tz
Time zone used for day-grid alignment when supplied.
- inter_gap
Maximum gap, in minutes, over which linear interpolation is allowed. Defaults to 45, matching iglu's internal default.
Details
The implementation follows the CONGA calculation approach used by
iglu::conga: after interpolation to a regular
day-aligned CGM grid, CONGA is the sample standard deviation of glucose
differences separated by n hours.
References
McDonnell, C. M., et al. (2005). A novel approach to continuous glucose analysis utilizing glycemic variation. Diabetes Technology and Therapeutics, 7(2), 253-263. doi:10.1089/dia.2005.7.253