score_ecr: Score the experiences in close relationships - revised...

View source: R/score_ecr.R

score_ecrR Documentation

Score the experiences in close relationships – revised (ECR-R) scale (Fraley, Waller, & Brennan, 2000) This is for the 36-item version with odd (avoidance) / even (anxiety) item sorting.

Description

Score the experiences in close relationships – revised (ECR-R) scale (Fraley, Waller, & Brennan, 2000) This is for the 36-item version with odd (avoidance) / even (anxiety) item sorting.

Usage

score_ecr(
  df,
  item_prefix = "ECR",
  max_impute = 0.2,
  drop_items = FALSE,
  keep_reverse_codes = FALSE,
  min_value = 1,
  max_value = 7
)

Arguments

df

a data.frame containing the 36 ECR 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..n] of missing values per scale. Below this threshold, the person subscale mean will be imputed for missing items.

drop_items

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

keep_reverse_codes

whether to retain the reverse coded items (suffix "r")

min_value

the minimum value for the item anchors, used in reverse scoring. Default: 1

max_value

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

Details

Adds two columns, ECR_anxiety and ECR_avoidance, to df containing the anxiety and avoidance scales, respectively.

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

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

See: http://labs.psychology.illinois.edu/~rcfraley/measures/ecrritems.htm

Author(s)

Michael Hallquist


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