Calculate sum scores of HoNOS subscales (12-item version)

calc_subscales(
  data,
  id_var,
  date_var,
  item_var,
  value_var,
  return_format = c("long", "wide"),
  return_items = FALSE
)

Arguments

data

Data in long format

id_var

Name of variable that uniquely identifies each individual

date_var

Name of date (or datetime) variable

item_var

Name of variable specifying item numbers

value_var

Name of variable with HoNOS scores

return_format

String, specifying whether to return data in long (i.e., TODO) or wide (i.e., TODO) format

return_items

Logical, specifying whether to include individual item scores. NOTE: CURRENTLY NOT SUPPORTED.

Value