e_calc_phq9_categories: PHQ-9 category labels using Table 4 from Kroenke K, Spitzer...

View source: R/e_health_ALL.R

e_calc_phq9_categoriesR Documentation

PHQ-9 category labels using Table 4 from Kroenke K, Spitzer RL, Psychiatric Annals 2002;32:509-521

Description

PHQ-9 Scores and Proposed Treatment Actions. https://www.pcpcc.org/sites/default/files/resources/instructions.pdf

Usage

e_calc_phq9_categories(
  phq9,
  phq9_breaks = c(-Inf, 5, 10, 15, 20, Inf),
  phq9_labels = c("None-minimal", "Mild", "Moderate", "Moderately Severe", "Severe")
)

Arguments

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

Value

phq9_cat, categorical levels of PHQ-9

Examples

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)

erikerhardt/erikmisc documentation built on April 17, 2025, 10:48 a.m.