GenHypoIntervals: Calculate hypoglycemia management time intervals

Description Usage Arguments Value Author(s) Examples

View source: R/GenHypoIntervals.R

Description

There are three types of intervals: hypo to next documented BG, hypo to resolution of hypo, and resolution of hypo to next documented hypo. This function will calculate these intervals.

Usage

1

Arguments

dat

A data.table prepared by GenEpisode.

Value

A list containing the time intervals.

Author(s)

Ying Chen

Examples

1
2
3
4
5
6
# Focus on data from Ward A. First prepare example data using GenEpisode:
data("gluDat")
gluDat2 <- FormatDate(dat = gluDat[gluDat$LOCATION == "A", ], yy = 2020, mm = 7)
gluDat3 <- GenEpisode(dat = gluDat2, epiMethod = "Admininfo")
# Then generate hypo intervals:
GenHypoIntervals(dat = gluDat3)

nyilin/QcDM documentation built on June 29, 2021, 1:14 a.m.