fruit: Synthetic respondent data set: consumers' preferences for...

fruitR Documentation

Synthetic respondent data set: consumers' preferences for fruits

Description

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.

Usage

data(fruit)

Format

A data frame with 100 respondents on the following 15 variables.

ID

Identification number of respondents.

B1

Item selected as the best in question 1.

W1

Item selected as the worst in question 1.

B2

Item selected as the best in question 2.

W2

Item selected as the worst in question 2.

B3

Item selected as the best in question 3.

W3

Item selected as the worst in question 3.

B4

Item selected as the best in question 4.

W4

Item selected as the worst in question 4.

B5

Item selected as the best in question 5.

W5

Item selected as the worst in question 5.

B6

Item selected as the best in question 6.

W6

Item selected as the worst in question 6.

B7

Item selected as the best in question 7.

W7

Item selected as the worst in question 7.

Author(s)

Hideo Aizaki

See Also

bws.dataset, find.BIB

Examples

# 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

support.BWS documentation built on March 31, 2023, 8:12 p.m.