score_cts: Score the Conflict Tactics Scale (CTS)

View source: R/score_cts.R

score_ctsR Documentation

Score the Conflict Tactics Scale (CTS)

Description

Score the Conflict Tactics Scale (CTS)

Usage

score_cts(
  df,
  item_prefix = "CTS_",
  max_impute = 0.2,
  drop_items = FALSE,
  min_value = 1,
  max_value = 7,
  bad_items = NULL,
  add_alphas = TRUE
)

Arguments

df

a data.frame containing the 40 CTS items to be scored

item_prefix

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

max_impute

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

drop_items

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

min_value

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

max_value

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

bad_items

numeric value or vector of the items that need to be dropped before imputation or calculation of subscales

add_alphas

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

Details

Adds fifteen columns, twelve subscales, two domain scales, and one total, to df.

Note: the default CTS scoring uses the mean of the items for the scales.

Note: the code assumes that pasting together the item_prefix and the numbers 1:40 will yield the 40 items from the test.

Author(s)

Michael Hallquist, Zach Vig


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