scoring_hads: Scoring the Hospital Anxiety and Depression Scale (HADS)

Description Usage Arguments Details Value References Examples

View source: R/hads.R

Description

The HADS is a fourteen item instrument with 7 items relate to anxiety and 7 relate to depression. Zigmond and Snaith created this outcome measure specifically to avoid reliance on aspects of these conditions that are also common somatic symptoms of illness, for example fatigue and insomnia or hypersomnia. This, it was hoped, would create a tool for the detection of anxiety and depression in people with physical health problems. (see Wikipedia)

Usage

1
2
3
4
5
6
7
8
scoring_hads(
  data,
  items = 1:14,
  keep = TRUE,
  nvalid = 6,
  digits = NULL,
  reverse = c(7, 10)
)

Arguments

data

a data.frame containing the HADS items orderd from 1 to 14

items

A character vector with the HADS item names ordered from 1 to 14, or a numeric vector indicating the column numbers of the HADS items in data.

keep

Logical, whether to keep the single items and whether to return variables containing the number of non-missing items on each scale for each respondent. The default is TRUE.

nvalid

A numeric value indicating the number of non-missing items required for score calculations. The default is 6.

digits

Integer of length one: value to round to. No rounding by default.

reverse

items to be scored reversely. These items can be specified either by name or by index. Default: 7, 10

Details

Value

The function returns 7 variables:

References

Zigmond, Snaith (1983) (https://doi.org/10.1111/j.1600-0447.1983.tb09716.x)

Snaith (2003) (https://dx.doi.org/10.1186%2F1477-7525-1-29)

Examples

1
2
3
4
5
6
## Not run: 
library(dplyr)
items.hads <- paste0("hads_", seq(1, 14, 1))
scoring_hads(mydata, items = items.hads, reverse = c(7, 10))

## End(Not run)

nrkoehler/qscorer documentation built on April 5, 2020, 3:09 a.m.