Learn R Programming

userfriendlyscience (version 0.7.2)

reliability: Reliability function similar to the SPSS RELIABILITY command

Description

This function was developed to offer a function that roughly works similar to the SPSS RELIABILITY command.

Usage

reliability(data,
            items = NULL,
            itemDiagnostics = FALSE,
            digits = 2)

Arguments

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.

See Also

scaleStructure, the excellent psych package

Examples

Run this code
# NOT RUN {
## (Not run to test because it takes a long time.)

data(testRetestSimData);
reliability(testRetestSimData[, 2:11], itemDiagnostics = TRUE);
# }

Run the code above in your browser using DataLab