scoring_bdi: Scoring the Beck Depression Inventory (BDI and BDI-II)

Description Usage Arguments Details Value References Examples

View source: R/bdi.R

Description

Scoring the Beck Depression Inventory (BDI and BDI-II)

Usage

1
2
3
4
5
6
7
8
scoring_bdi(
  data,
  items = 1:21,
  keep = TRUE,
  nvalid = 17,
  digits = NULL,
  version = "BDI-II"
)

Arguments

data

a data.frame containing the BDI items orderd from 1 to 21

items

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

digits

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

version

A character vector with the BDI version, either "BDI-I" or "BDI-II" (default)

Details

Value

The function returns 4 variables:

References

Beck et al. 1961 (https://doi.org/10.1001%2Farchpsyc.1961.01710120031004)

Beck et al. 1996 (https://doi.org/10.1207%2Fs15327752jpa6703_13)

Examples

1
2
3
4
5
6
## Not run: 
library(dplyr)
items.bdi <- paste0("bdi_", seq(1, 21, 1))
scoring_bdi(mydata, items = items.bdi, version = 'BDI-I')

## End(Not run)

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