score_scale_items {kim} | R Documentation |
Score scale items
Description
Score items in a scale (e.g., Likert scale items) by computing the sum or mean of the items.
Usage
score_scale_items(
item_list = NULL,
reverse_item_list = NULL,
operation = "mean",
na.rm = FALSE,
na_summary = TRUE,
reverse_code_minuend = NULL
)
Arguments
item_list |
a list of scale items (i.e., list of vectors of ratings) to code normally (as opposed to reverse coding). |
reverse_item_list |
a list of scale items to reverse code. |
operation |
if |
na.rm |
logical. The |
na_summary |
logical. If |
reverse_code_minuend |
required for reverse coding; the number
from which to subtract item ratings when reverse-coding. For example,
if the items to reverse code are measured on a 7-point scale, enter
|
Examples
score_scale_items(item_list = list(1:5, rep(3, 5)),
reverse_item_list = list(rep(5, 5)), reverse_code_minuend = 6)
score_scale_items(item_list = list(c(1, 1), c(1, 5)),
reverse_item_list = list(c(5, 3)),
reverse_code_minuend = 6, na_summary = FALSE)
score_scale_items(item_list = list(c(1, 1), c(1, 5)),
reverse_item_list = list(c(5, 1)),
reverse_code_minuend = 6, operation = "sum")
score_scale_items(item_list = list(1:5, rep(3, 5)))
score_scale_items(item_list = list(c(1, NA, 3), c(NA, 2, 3)))
score_scale_items(item_list = list(c(1, NA, 3), c(NA, 2, 3)), na.rm = TRUE)