score_rse: Score the Relationship and Sex Education (RSE) scale

View source: R/score_rse.R

score_rseR Documentation

Score the Relationship and Sex Education (RSE) scale

Description

Score the Relationship and Sex Education (RSE) scale

Usage

score_rse(
  df,
  item_prefix = "RSE",
  max_impute = 0.2,
  drop_items = FALSE,
  keep_reverse_codes = FALSE,
  min_value = 1,
  max_value = 4
)

Arguments

df

a data.frame containing the 10 RSE items to be scored

item_prefix

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

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: 4

Details

Adds one column, RSE_total, to df containing the sum of scores.

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

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

Author(s)

Michael Hallquist


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