CONGA.fn {CGManalyzer} | R Documentation |
Function to calculate the continuous overlapping net glycemic action (CONGA)
Description
For each observation after the first n hours of observations, the difference between the current observation and the observation n hours previous was calculated. CONGA is defined as the standard deviation of the differences.
Usage
CONGA.fn(y, Interval = 5, n = 2)
Arguments
y |
measured response, must be evenly spaced in measured time |
Interval |
number of minutes between two consecutive time points |
n |
the length of a segment in CONGA |
Value
a value of CONGA
Author(s)
Xiaohua Douglas Zhang, Dandan Wang
References
Zhang XD, Zhang Z, Wang D. 2018. CGManalyzer: an R package for analyzing continuous glucose monitoring studies. Bioinformatics 34(9): 1609-1611 (DOI: 10.1093/bioinformatics/btx826).
Examples
library(CGManalyzer)
package.name <- "CGManalyzer"
source( system.file("SPEC", "SPECexample.R", package = package.name) )
y = rnorm( 3*24*60/5, mean=5, sd=0.1)
CONGA.fn(y, Interval = 5, n=2)
[Package CGManalyzer version 1.3.1 Index]