| apa_reliability | R Documentation |
Makes an APA-style table of the reliability of one or more scales: for each
item, its mean, standard deviation, corrected item-total correlation, and
Cronbach's \alpha if the item were deleted, followed for each
scale by the scale score's mean and standard deviation, Cronbach's
\alpha with its confidence interval, McDonald's
\omega_{\text{total}}, and the mean inter-item
correlation.
apa_reliability(
data,
scales = NULL,
reverse = NULL,
item_range = NULL,
level = c("items", "scales"),
omega = TRUE,
ci = 0.95,
score = c("mean", "sum"),
flag = NULL,
format_variable_names = TRUE,
digits = 2
)
data |
data frame of item responses |
scales |
named list of the items of each scale, given as unquoted or
quoted names or tidyselect helpers (e.g., |
reverse |
items to reverse-score before the analysis, selected like
the items in |
item_range |
lowest and highest possible responses, used to reverse
items. If |
level |
|
omega |
if |
ci |
confidence level of the interval of |
score |
|
flag |
|
format_variable_names |
if |
digits |
number of decimal places (unaffected by
|
The corrected item-total correlation (r~it~) is the item's correlation
with the sum of the other items in its scale. Items with low values (often,
below .30) discriminate poorly. \alpha if deleted is the
scale's \alpha without the item; values above the scale's
\alpha mean that the item lowers reliability.
Cronbach's \alpha, the item statistics, and the mean
inter-item correlation come from psych::alpha(). The confidence interval
of \alpha is Feldt's. \omega_{\text{total}}
is computed from a one-factor model (psych::fa(), minimum residual):
(\sum\lambda)^2 / ((\sum\lambda)^2 + \sum\psi).
Each scale uses the respondents who answered all of its items, and the
note gives their number. Scale scores are the means of the items (or their
sums, with score = "sum").
When all items of a scale are scored 0 and 1 (e.g., incorrect and correct
answers), M is the item's difficulty (the proportion of 1s), r~it~ is
the corrected point-biserial correlation, and \alpha equals
KR-20. The note says so.
apa7_tbl (tibble)
Feldt, L. S., Woodruff, D. J., & Salih, F. A. (1987). Statistical inference for coefficient alpha. Applied Psychological Measurement, 11(1), 93–103. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1177/014662168701100107")}
McDonald, R. P. (1999). Test theory: A unified treatment. Lawrence Erlbaum. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.4324/9781410601087")}
d <- psych::bfi
apa_reliability(
d,
scales = list(
Agreeableness = paste0("A", 1:5),
Conscientiousness = paste0("C", 1:5)
),
reverse = c("A1", "C4", "C5"),
item_range = c(1, 6)
)
# One row per scale, with items selected by tidyselect helpers
apa_reliability(
d,
scales = list(
Agreeableness = A1:A5,
Conscientiousness = starts_with("C")
),
reverse = c(A1, C4, C5),
item_range = c(1, 6),
level = "scales"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.