e_calc_phq9_categories | R Documentation |
PHQ-9 Scores and Proposed Treatment Actions. https://www.pcpcc.org/sites/default/files/resources/instructions.pdf
e_calc_phq9_categories(
phq9,
phq9_breaks = c(-Inf, 5, 10, 15, 20, Inf),
phq9_labels = c("None-minimal", "Mild", "Moderate", "Moderately Severe", "Severe")
)
phq9 |
PHQ-9 scores (0 - 27) |
phq9_breaks |
Breaks defining labeled ranges, intervals are closed on the left |
phq9_labels |
Labels for values between break values including lower bound |
phq9_cat, categorical levels of PHQ-9
e_calc_phq9_categories(c(0, 6, 12, 21))
dplyr::tibble(
phq9 = seq(0, 27, by = 1)
, phq9_cat = phq9 |> e_calc_phq9_categories()
) |>
print(n = Inf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.