powered by
Generates experimental designs for DCEs. (Backend of DCEtool) .
dce_toolbox(attributes, csets, alts, nochoice, priors, alg)
The design matrix
The Bayesian D-error if the optimization algorithm is "cea"
The D-error if the optimization algorithm is "fedorov"
A string compiling the details of the procedure
A vector where each number represents an attribute and its values the number of levels.
An integer indicating the number of sets in the DCE.
An integer indicating the number of alternatives in each set.
A boolean indicating whether there is an opt-out option (TRUE) or not (FALSE)
A vector indicating the prior parameters of the conditional logit model.
A string indicating the optimization algorithm: "cea" or "fedorov".
if (FALSE) { dce_toolbox(attributes = c(2,3), csets = 12, alts = 2, nochoice = FALSE, priors = c(0,0,0), alg = "fedorov") }
Run the code above in your browser using DataLab