View source: R/cbc-data-handling.R
pickMNLwinningCards | R Documentation |
Choose the winning concepts in a CBC design matrix, according to utilities
pickMNLwinningCards(
design.mat,
pws = rep(0, ncol(design.mat)),
cards = 3,
noise = FALSE,
p.noise = 0.3,
use.MNL = TRUE,
verbose = TRUE,
vec.format = "WIN"
)
design.mat |
A design matrix as created by |
pws |
A vector of utility coefficients for each column in
|
cards |
How many concepts are seen on each trial in the design matric. |
noise |
Whether to randomly make some choices (instead of using the utilties) |
p.noise |
The odds of randomly choosing a winner (instead of using the utilities) |
use.MNL |
Not used currently, placeholder for future. |
verbose |
Whether to output information as it runs. |
vec.format |
"WIN" will mark the winning row in the design matrix with a "1" and all others with "0". This would match a typical regression model to estimate coefficients from the observations. "ANS" will put the row number of the winning concept into the rows for each trial; some other software expects that format. |
A vector identifying which concept won each trial, according to the design matrix and supplied utilities.
[generateMNLrandomTab] to create a design matrix, [generateRNDpws] to create a random set of utilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.