scoring_phq15: Scoring the PHQ-15 questionnaire

Description Usage Arguments Details Value References Examples

Description

The Patient Health Questionnaire 15 item (PHQ-15) contains the PHQ's somatic symptom scale. It is a well-validated measure, which asks whether symptoms are present and about their severity. (see: Wikipedia)

Usage

1
scoring_phq15(data, items = 1:15, keep = TRUE, nvalid = 12, digits = NULL)

Arguments

data

a data.frame containing the PHQ-15 items orderd from 1 to 15. The data.frame may contain further variables.

items

A character vector with the PHQ-15 item names ordered from 1 to 15, or a numeric vector indicating the column numbers of the PHQ-15 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 12.

digits

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

Details

Value

The function returns 3 variables:

References

Kroenke et al. 2010 (https://doi.org/10.1016/j.genhosppsych.2010.03.006)

Kocalevent et al. 2013 (https://doi.org/10.1186/1471-244X-13-91)

Examples

1
2
3
4
5
6
## Not run: 
library(dplyr)
items.phq15 <- paste0("phq_", seq(1, 15, 1))
scoring_phq15(mydata, items = items.phq15)

## End(Not run)

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