score_lsas: Score the Liebowitz Social Anxiety Scale (LSAS)

View source: R/score_lsas.R

score_lsasR Documentation

Score the Liebowitz Social Anxiety Scale (LSAS)

Description

Score the Liebowitz Social Anxiety Scale (LSAS)

Usage

score_lsas(
  df,
  item_prefix = "LSAS_",
  max_impute = 0.2,
  min_value = 0,
  max_value = 3,
  drop_items = FALSE,
  add_alphas = TRUE
)

Arguments

df

a data.frame containing the LSAS items to be scored

item_prefix

a character prefix of the items names in df to be scored. Default: "LSAS_"

max_impute

the proportion of missingness [0..1] or number [1..n] of missing values per subscale. Below this, the mean will be imputed for missing items.

min_value

the lowest value for the items anchors, used to check response validity. Default: 0

max_value

the highest value for the items anchors, used to check response validity. Default: 3

drop_items

whether to remove the item-level data from the df. Default: FALSE

add_alphas

whether to compute coefficient alpha for subscales and return a column attribute. Default: TRUE

Value

A data frame with LSAS items, four social interaction & performance fear and avoidance subscales scores and two total fear and avoidance scores.

Author(s)

Nidhi Desai


PennStateDEPENdLab/dependlab documentation built on April 10, 2024, 5:15 p.m.