View source: R/psychometrics.R
| reliability_report | R Documentation |
Produces Cronbach's alpha and McDonald's omega for each scale defined in the instrument, along with the number of items and sample size.
reliability_report(data, instrument, scales = NULL, alpha = TRUE, omega = TRUE)
data |
A |
instrument |
An |
scales |
Character vector or NULL. A subset of scale IDs to analyse. When NULL (default), all scales in the instrument are included. |
alpha |
Logical. Whether to compute Cronbach's alpha. Defaults to
|
omega |
Logical. Whether to compute McDonald's omega. Defaults to
|
An object of class sframe_reliability_report, a list with one
element per scale. Each element is a list of statistics and a summary
tibble.
sf_scale(), item_report()
if (requireNamespace("psych", quietly = TRUE)) {
demo <- sframe_demo_data()
rr <- reliability_report(demo$responses, demo$instrument, omega = FALSE)
print(rr)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.