| fruit | R Documentation |
Data set artificially created for an example based on a BIBD. This example illustrates consumers' preferences for seven fruits: apple, orange, grapes, banana, peach, melon, and pear.
data(fruit)
A data frame with 100 respondents on the following 15 variables.
IDIdentification number of respondents.
B1Item selected as the best in question 1.
W1Item selected as the worst in question 1.
B2Item selected as the best in question 2.
W2Item selected as the worst in question 2.
B3Item selected as the best in question 3.
W3Item selected as the worst in question 3.
B4Item selected as the best in question 4.
W4Item selected as the worst in question 4.
B5Item selected as the best in question 5.
W5Item selected as the worst in question 5.
B6Item selected as the best in question 6.
W6Item selected as the worst in question 6.
B7Item selected as the best in question 7.
W7Item selected as the worst in question 7.
Hideo Aizaki
bws.dataset, find.BIB
# The following BIBD is generated using find.BIB()
# in the crossdes package:
# set.seed(123)
# find.BIB(trt = 7, k = 4, b = 7)
sets.fruit <- cbind(
c(1,2,2,1,1,3,1),
c(4,3,4,2,3,5,2),
c(6,4,5,5,4,6,3),
c(7,6,7,6,5,7,7))
items.fruit <- c(
"Apple",
"Orange",
"Grapes",
"Banana",
"Peach",
"Melon",
"Pear")
bws.questionnaire(
choice.sets = sets.fruit,
design.type = 2,
item.names = items.fruit)
data(fruit)
data.fruit <- bws.dataset(
respondent.dataset = fruit,
response.type = 1,
choice.sets = sets.fruit,
design.type = 2,
item.names = items.fruit)
count.fruit <- bws.count(data = data.fruit)
count.fruit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.