| ce.dataset | R Documentation |
This function combines make.design.matrix and make.dataset. It returns a data set for analysis that is similar to one from make.dataset.
ce.dataset(data,
response,
design,
categorical.attributes = NULL,
continuous.attributes = NULL,
common = NULL,
optout = TRUE,
unlabeled = TRUE,
binary = FALSE,
detail = FALSE)
data |
A data frame containing respondents' answers to choice experiment questions. It corresponds to an argument |
response |
A vector of variables showing the alternative of which was selected in each choice experiment question. It corresponds to an argument |
design |
A data frame containing a choice experiment design created by the function |
categorical.attributes |
A vector containing the names of attributes treated as categorical independent variables in the analysis. |
continuous.attributes |
A vector containing the names of attributes treated as continuous independent variables in the analysis. |
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 |
optout |
A logical variable describing whether or not the opt-out alternative is included in the design matrix created by this function. If |
unlabeled |
A logical variable describing the types of a choice experiment design assigned by the argument |
binary |
When the function is applied to the conditional logit model, the argument is set as |
detail |
A logical variable describing whether or not some variables contained in the argument |
This function provides a data set for analysis by combining a choice experiment design created by the function Lma.design or rotation.design and respondent data set. The resultant data set is similar to one from make.dataset.
For details on arguments, see help for make.dataset and make.design.matrix.
For details on the output, see help for make.dataset.
This function provides a data set (data frame) for discrete choice analysis of responses to choice experiment questions. The resultant data set is similar to one from the function make.dataset. For details, see help for make.dataset.
Hideo Aizaki
make.dataset, make.design.matrix
# See "Examples" for the function make.dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.