Calculate change labels for lagged change scores

calc_change_label(
  value,
  lag_value,
  change_label = c("high_low", "deterio_improve")
)

Arguments

value

Name of variable with HoNOS score at time point (t)

lag_value

Name of variable with HoNOS score at previous time point (t-1)

change_label

String, specifying whether to describe the change using "high_low" (e.g., HL stands for high to low) or "deterio_improve" (Deterioration, Unchanged, Improved)

Value

Labelled "factor"

Examples

calc_change_label(value = 0, lag_value = 4, change_label = "deterio_improve")
#> [1] Deterioation #> Levels: Deterioation Unchanged Improvement