dcm.design.sort {choiceDes}R Documentation

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.

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.

Value

A data frame containing the levels-coded design with rows randomized within block, and with card, version and task variables appended.

See Also

dcm.design, dcm.design.cand, tradeoff.des

Examples

## INTERNAL USE ONLY

[Package choiceDes version 0.9-3 Index]