dat4: Data (paired comparisons): dat4

Description Usage Format Examples

Description

A fictitious dataset with 100 observations on 6 paired comparisons. The responses get the value 1 if the first object in a comparison is preferred and -1 otherwise.

For the arrangement of objects and comparisons see llbt.design.

Usage

1

Format

A data frame with 100 observations on 6 comparisons (comp1 to comp6)

Examples

1
2
3
4
5
6
str(dat4)

# to get a general idea we use the histogram plot
old_par <- par(mfrow = c(2, 3))
for(i in 1:6){ barplot(table(dat4[, i])) }
par(old_par)

Example output

Loading required package: gnm
Loading required package: colorspace
'data.frame':	100 obs. of  6 variables:
 $ comp1: num  1 -1 1 1 -1 1 -1 1 -1 1 ...
 $ comp2: num  1 1 1 1 1 1 1 1 -1 1 ...
 $ comp3: num  1 1 -1 -1 1 1 1 -1 1 -1 ...
 $ comp4: num  1 1 1 1 1 -1 1 1 1 -1 ...
 $ comp5: num  1 1 1 1 -1 1 1 1 -1 1 ...
 $ comp6: num  1 -1 -1 -1 1 -1 1 -1 1 -1 ...

prefmod documentation built on May 2, 2019, 4:59 p.m.