Description Usage Arguments Value Author(s) Examples
Produce Glucometrics table
1 | ProGluTable(metricList, unitVal)
|
metricList |
A list of glucometrics, from |
unitVal |
A unit indicator. 1 stands for mmol/L, 2 stands for md/dL |
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.
Ying Chen, Mark Salloway
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.