MODD.fn {CGManalyzer}R Documentation

Function to calculate the mean of daily differences (MODD)

Description

Calculates MODD which is the absolute value of the difference between glucose values taken on two consecutive days at the same time was calculated; the MODD is the mean of these differences.

Usage

MODD.fn(y, Interval = 5)

Arguments

y

measured response, must be evenly spaced in measured time

Interval

number of minutes between two consecutive time points

Value

a value of MODD

Author(s)

Xiaohua Douglas Zhang

References

Zhang XD, Zhang Z. CGManalyzer: a R package for analyzing continuous glucose monitoring studies

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)
MODD.fn(y, Interval = 5)

[Package CGManalyzer version 1.3 Index]