scoring_yfas: Scoring the Yale Food Addiction Scale, Version 2.0 (YFAS...

Description Usage Arguments Details Value References Examples

View source: R/yfas.R

Description

The Yale Food Addiction Scale, Version 2.0 (YFAS V2.0) measures addiction-like eating of palatable foods based on the eleven diagnostic criteria for substance use disorder in the fifth revision of the Diagnostic and Statistical Manual of Mental Disorders (DSM-5).

Usage

1
scoring_yfas(data, items = 1:35, keep = TRUE)

Arguments

data

a data.frame containing the YFAS 2.0 items orderd from 1 to 35. The data.frame may contain further variables.

items

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

Details

Value

Based on the dichotomized YFAS items, the function returns 14 variables:

References

Schulte, Gearhardt 2017 (http://doi.wiley.com/10.1002/erv.2515)

Meule et al. 2017 (https://doi.org/10.1026/0012-1924/a000047)

Examples

1
2
3
4
5
6
## Not run: 
library(dplyr)
items.yfas <- paste0("YFAS_", seq(1, 35, 1))
scoring_yfas(mydata, items = items.yfas)

## End(Not run)

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