ProGluTable: Produce Glucometrics table

Description Usage Arguments Value Author(s) Examples

View source: R/GenGluTable.R

Description

Produce Glucometrics table

Usage

1
ProGluTable(metricList, unitVal)

Arguments

metricList

A list of glucometrics, from GenGluM

unitVal

A unit indicator. 1 stands for mmol/L, 2 stands for md/dL

Value

Returns a list containing a table summarising the number of patient-days and patient-stays with glucose reading in pre-specified ranges, and a vector containing footnotes to this table.

Author(s)

Ying Chen, Mark Salloway

Examples

1
2
3
4
5
6
7
8
9
# Focus on data from Ward A. First generate glucometrics using GenGluM:
data("gluDat")
gluDat2 <- FormatDate(dat = gluDat[gluDat$LOCATION == "A", ], yy = 2020, mm = 7)
gluDat3 <- GenEpisode(dat = gluDat2, epiMethod = "Admininfo")
metricList <- GenGluM(dat = gluDat3, hypocutoffs = c(4, 3, 2.5),
                      hypercutoffs = c(14, 20, 24), normalrange = c(4, 10),
                      hgicutoff = 10, unitVal = 1)
# Then generate glucometrics table:
ProGluTable(metricList = metricList, unitVal = 1)

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