matches: Number of matches in ratings

Description Usage Arguments Value Examples

View source: R/measures.r

Description

Count the number of matches, i.e. (near) identical ratings between two elements or constructs. Matches are used as the basis for the calculation of grid indexes.

Usage

1
matches(x, deviation = 0, diag.na = TRUE)

Arguments

x

A repgrid object.

deviation

Maximal difference between ratings to be considered a match (default 0 = only identical rating scores are a match). Especially useful for long rating scale (e.g. 0 to 100).

diag.na

Whether to set the diagonal of the matrices to NA (default is TRUE).

Value

A list of class org.matches with:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
m <- matches(boeker)

# several output options
print(m, index = FALSE, names = FALSE, upper = FALSE)
print(m, output = "C")  # construct matches
print(m, output = "E")  # element matches

# extract the matrices
m$constructs
m$elements

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.