View source: R/phoenix_endocrine.R
phoenix_endocrine | R Documentation |
Assess the Phoenix endocrine organ dysfunction score. This score is not part of the Phoenix score, only part of the Phoenix-8 score.
phoenix_endocrine(glucose = NA_real_, data = parent.frame(), ...)
glucose |
numeric vector; blood glucose measured in mg/dL |
data |
a |
... |
pass through |
a integer vector with values 0 or 1
As with all other Phoenix organ system scores, missing values in the data set will map to a score of zero - this is consistent with the development of the criteria.
The endocrine dysfunction score is based on blood glucose with one point for levels < 50 mg/dL or > 150 mg/dL.
See reference details in phoenix-package
or by calling
citation('phoenix')
.
phoenix
for generating the diagnostic
Phoenix Sepsis score based on the four organ systems:
phoenix_cardiovascular
,
phoenix_coagulation
,
phoenix_neurologic
,
phoenix_respiratory
,
phoenix8
for
generating the diagnostic Phoenix 8 Sepsis criteria based on the four organ
systems noted above and
phoenix_endocrine
,
phoenix_immunologic
,
phoenix_renal
,
phoenix_hepatic
,
vignette('phoenix')
for more details and examples.
# using the example sepsis data set
# recall glucose is expected to have units of mg/dL
endo_example <- sepsis[c("pid", "glucose")]
endo_example$score <- phoenix_endocrine(glucose, data = sepsis)
endo_example
# example data set to get all the possible endocrine scores
# recall glucose is expected to have units of mg/dL
DF <- data.frame(glc = c(NA, 12, 50, 55, 100, 150, 178))
phoenix_endocrine(glucose = glc, data = DF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.