dcm.design.sort: INTERNAL: Append other design variables
Description
Internal function to append card, version and task variables to design.
Usage
dcm.design.sort(design, nb, sets, alts)
Arguments
design
A levels-coded design generated by either dcm.design or
dcm.design.cand.
nb
The number of blocks or versions in the final design.
sets
The number of choice sets in each version of the final design.
alts
The number of alternatives in each choice set.
Value
A data frame containing the levels-coded design with rows randomized within block, and with card, version
and task variables appended.
Details
Randomizes the order of rows within each block of the design using runif and appends
card, version and task variables as appropriate.
This function is called internally by dcm.design and dcm.design.cand.
See Also
dcm.design, dcm.design.cand, tradeoff.des
Examples
Run this code# NOT RUN {
## INTERNAL USE ONLY
# }
Run the code above in your browser using DataLab