IntegrateDesignAndData: 'IntegrateDesignAndData'

Description Usage Arguments

View source: R/data.R

Description

A matrix where in each row, the first element is the 'best' choice and the last element is the 'worst' choice.

Usage

1
2
IntegrateDesignAndData(design, version, best, worst, seed,
  questions.left.out = 0)

Arguments

design

A data.frame, where the first variable is called 'Version', the second is called 'Question', and the remaining variables contain the alternatives shown in each question.

version

A vector of integers showing the version of the design shown to each respondent.

best

Amatrix of integers showing the choices made by each respondent on each of the questions. One column for each task. The integers need to correspond to the design vector of integers showing the version of the design shown to each respondent. Coerced to a matrix if a data.frame.

worst

As with 'best', except denoting worst..

seed

Seed for cross validation

questions.left.out

Number of questions to leave out for cross-validation.


erikerhardt/flipMaxDiff documentation built on June 21, 2020, 12:54 a.m.