balanced.pcdesign: Balanced Paired-Comparison Design

Description Usage Arguments Details Value References See Also Examples

View source: R/balanced.pcdesign.R

Description

Creates a (completely) balanced paired-comparison design.

Usage

1

Arguments

nstimuli

number of stimuli in the paired-comparison design

Details

When nstimuli is odd, the presentation order is completely balanced, that is any given stimulus appears an equal number of times as the first and second member of a pair. When nstimuli is even, the presentation order is balanced as much as possible. Subjects should be equally assigned to listA and listB for the purpose of balancing the within-pair presentation order across a sample of subjects. Pairs should be re-randomized for each subject. See David (1988) for details.

Value

pairs

a character array holding the balanced pairs

listA

the vector pairs in the original within-pair order

listB

the vector of pairs in the inverted within-pair order

References

David, H. (1988). The method of paired comparisons. London: Griffin.

See Also

pcX, eba.

Examples

1
2
3
4
5
## Create balanced design for 6 stimuli
bp <- balanced.pcdesign(6)

## Replicate each within-pair order 10 times and re-randomize
cbind(replicate(10, sample(bp$listA)), replicate(10, sample(bp$listB)))

eba documentation built on Jan. 13, 2021, 10:12 a.m.

Related to balanced.pcdesign in eba...