Learn R Programming

GetR (version 0.1)

guttmanErrors: Calculate Guttman errors

Description

The function returns the number of Guttman errors for each participant.

Usage

guttmanErrors(data)

Arguments

data
a matrix or data.frame which comprises the participant's responses.

Value

Numeric vector with the number of Guttman errors per participant.

Details

Function was adapted from the mokken Package (van der Ark, 2007).

References

Van der Ark, L. A. (2007) Mokken scale analysis in R. Journal of Statistical Software. http://www.jstatsoft.org/v20/i11

Examples

Run this code
data(Communality)
ge <- guttmanErrors(Communality[,1:10])
hist(ge)

Run the code above in your browser using DataLab