score_upps: Score the UPPS-P Impulsive Behavior scale - revised 59 item...

View source: R/score_upps.R

score_uppsR Documentation

Score the UPPS-P Impulsive Behavior scale – revised 59 item version (Lynam, Smith, Whiteside, & Cyders, 2007)

Description

Score the UPPS-P Impulsive Behavior scale – revised 59 item version (Lynam, Smith, Whiteside, & Cyders, 2007)

Usage

score_upps(
  df,
  item_prefix = "UPPS_",
  max_impute = 0.2,
  drop_items = FALSE,
  keep_reverse_codes = FALSE,
  min_value = 1,
  max_value = 4,
  bad_items = NULL,
  add_alphas = TRUE
)

Arguments

df

a data.frame containing the 59 UPPS items to be scored

item_prefix

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

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

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 five columns, UPPS_negative_urgency, UPPS_lack_premeditation, UPPS_lack_perseverance, UPPS_sensation_seeking, UPPS_positive_urgency, to df containing the UPPS-P subscales, respectively.

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

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

See: http://web.archive.org/web/20190710205448/http://www.impulsivity.org/measurement/UPPS-P_59_item.pdf

Author(s)

Michael Hallquist, Zach Vig


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