reliability: Reliability function similar to the SPSS RELIABILITY command

Description Usage Arguments Author(s) See Also Examples

Description

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

Usage

1
2
3
4
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.

Author(s)

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

See Also

scaleStructure, the excellent psych package

Examples

1
2
3
4
5
6
7
## Not run: 
## (Not run to test because it takes a long time.)

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

## End(Not run)

Matherion/userfriendlyscience documentation built on May 7, 2019, 3:41 p.m.