make_mult_scales | R Documentation |
This function creates multiple scales, returns descriptives and supports reverse-coding of items.
make_mult_scales( df, items, reversed = NULL, two_items_reliability = c("spearman_brown", "cronbachs_alpha", "r"), ... )
df |
A dataframe |
items |
A named list of characters vectors. Names are the scale names, each vector contains the items for that scale (variables in df) |
reversed |
A named list of characters vectors. Names are the scale names, each vector contains the items to be reverse-coded for that scale |
two_items_reliability |
How should the reliability of two-item scales be reported? "spearman_brown" is the recommended default, but "cronbachs_alpha" and Pearson's "r" are also supported. |
... |
Arguments passed on to
|
A list of two dataframes: scale values ('scores') and descriptive statistics for each scale ('descriptives')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.