score_das: Scores the Dyadic Adjustment Scale (Spanier 1976) This is for...

View source: R/score_das.R

score_dasR Documentation

Scores the Dyadic Adjustment Scale (Spanier 1976) This is for the 32-item version

Description

Scores the Dyadic Adjustment Scale (Spanier 1976) This is for the 32-item version

Usage

score_das(
  df,
  item_prefix = "DAS",
  max_impute = 0.2,
  drop_items = FALSE,
  max_value = 7
)

Arguments

df

a data.frame containing the 32 DAS items to be scored

item_prefix

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

max_impute

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

drop_items

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

max_value

the highest value for the items anchors, used in reverse scoring. Default: 7

Details

Adds five columns, DASSat, DASCon, DASCoh, DASAffExp, and DASTotal to df containing the different subscaled.

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

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

Author(s)

Michael Hallquist


PennStateDEPENdLab/dependlab documentation built on Dec. 14, 2024, 7:12 a.m.