View source: R/variability_metrics.R
| conga_rcpp | R Documentation |
Calculates Continuous Overall Net Glycemic Action (CONGA) with an Rcpp backend.
conga_rcpp(data, n = 24, tz = "", inter_gap = 45)
data |
A dataframe containing CGM data with columns |
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. |
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.
A tibble with columns id and CONGA.
McDonnell, C. M., et al. (2005). A novel approach to continuous glucose analysis utilizing glycemic variation. Diabetes Technology and Therapeutics, 7(2), 253-263. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1089/dia.2005.7.253")}
iglu::conga, mage_rcpp
library(iglu)
data(example_data_5_subject)
conga_rcpp(example_data_5_subject)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.