Learn R Programming

prefmod (version 0.8-32)

dat4: Data (paired comparisons): dat4

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

dat4

Arguments

encoding

UTF-8

format

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

Examples

Run this code
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)

Run the code above in your browser using DataLab