Learn R Programming

EloChoice (version 0.29.4)

makepairwise: transform preference data

Description

transform preference data into paircomp format (paircomp)

Usage

makepairwise(winner, loser, rater)

Arguments

winner

character, vector with the IDs of the winning (preferred) stimuli

loser

character, vector with the IDs of the losing (not preferred) stimuli

rater

character, vector of rater identity

Value

object of class paircomp

See Also

psychotools

Examples

Run this code
# NOT RUN {
w <- c("B", "A", "E", "E", "D", "D", "A", "D", "E", "B", "A", "E", "D", "C", "A")
l <- c("C", "C", "C", "D", "B", "C", "E", "A", "B", "D", "E", "B", "E", "D", "C")
raters <- rep(letters[1:3], 5)
makepairwise(w, l, raters)
# }

Run the code above in your browser using DataLab