Description Usage Arguments Value
View source: R/cmc_prepareData.r
Orders data by respondent and prepares a data set to be used in model estimation
1 | cmc_prepareData(idColName, choiceColName, alternatives, availColName = NA)
|
idColName |
String indicating the name of the column containing respondents' ID. |
choiceColName |
String indicating the name of the column containing respondents' choice (level coded). |
alternatives |
Vector containing the codes (labels) used to register choices in the database, e.g.:c(1,2,3) or c('bus','train','plane'). If mdcev==1, then it must contain the column name of consumptions. |
availColName |
String indicating the name of the columns containing respondents' availability. The order must be the same than in the choice coding. If ommited, full availability is assumed. |
Nothing. Data is loaded as a global variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.