e_calc_a1c_categories | R Documentation |
See CDC https://www.cdc.gov/diabetes/managing/managing-blood-sugar/a1c.html
e_calc_a1c_categories(
a1c,
a1c_breaks = c(-Inf, 5.7, 6.4, Inf),
a1c_labels = c("Neither", "Pre-diabetes", "Diabetes")
)
a1c |
A1c values |
a1c_breaks |
Breaks defining labeled ranges, intervals are closed on the left |
a1c_labels |
Labels for values between break values including lower bound |
a1c_cat, categorical levels of A1c
a1c <- c(NA, seq(0,15, by =1), NA)
a1c_cat <- e_calc_a1c_categories(a1c)
data.frame(a1c, a1c_cat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.