This function was developed to offer a function that roughly works similar to the SPSS RELIABILITY command.
reliability(data, items = NULL, itemDiagnostics = FALSE, digits = 2)
data | The dataframe containing the variables (items, questions) of interest. |
---|---|
items | Optionally, the variables (items, questions) of interest. If omitted, all variables (items, questions) in the dataframe will be used. |
itemDiagnostics | Whether to also display the item diagnostics (specifically, the corrected item-total correlation, mean and variance excluding each item, and the reliability coefficients excluding each item). |
digits | The number of digits to use when displaying the results. |
scaleStructure
, the excellent psych
package
# NOT RUN { ## (Not run to test because it takes a long time.) data(testRetestSimData); reliability(testRetestSimData[, 2:11], itemDiagnostics = TRUE); # }