Learn R Programming

support.CEs (version 0.4-1)

questionnaire: Converting a choice experiment design into a choice experiment questionnaire

Description

This function converts a choice experiment design created by the function Lma.design or rotation.design into choice experiment questions used in a questionnaire survey.

Usage

questionnaire(choice.experiment.design, common = NULL, quote = TRUE)

Arguments

choice.experiment.design
A data frame containing a choice experiment design created by the function Lma.design or rotation.design.
common
A vector containing a fixed combination of attribute-levels corresponding to a common base option in each question. If there is no common base option, the argument is set as NULL (default).
quote
A logical variable indicating whether or not the attribute-levels in each question are printed wth quotation marks.

Value

Choice experiment questions converted from the choice experiment design are returned.

Details

This function converts a choice experiment design created by the function Lma.design or rotation.design into choice experiment questions used in a questionnaire survey.

References

Aizaki, H. (2012) Basic Functions for Supporting an Implementation of Choice Experiments in R. Journal of Statistical Software, Code Snippets, 50(2), 1--24. http://www.jstatsoft.org/v50/c02/

See Also

Lma.design, rotation.design

Examples

Run this code
# See "Examples" for the function make.dataset.

Run the code above in your browser using DataLab