Description Usage Arguments Details Value References See Also Examples
Generate an optimal fractional factorial design given vectors of factor lengths.
1 | dcm.design(cand, nb, sets, alts, fname=NULL, Rd=20, print=TRUE)
|
cand |
A vector of factor lengths, or a list containing vectors of factor lengths if a combinatorial design is needed. |
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. |
fname |
A character string, usually ending in ".txt", indiciating the name of the file containing the levels-coded design. |
Rd |
The number of repeats used by the initial design and blocking algorithms. See arg
|
print |
Boolean indicating whether there is output to the console during execution. |
Generates balanced and blocked choice sets from one or more specified full-factorial candidate
set(s) using a modified Federov (1972) algorithm. See optFederov
in AlgDesign (Wheeler, 2004)
for a more complete description of the algorithm. Starting points are chosen randomly (as opposed to by
nullification) and may be seeded using set.seed
. The D
criterion is used for optimization.
See optBlock
for a description of the blocking method used.
If fname
is not NULL
a tab-delimited plain-text file is generated in the working
directory containing the levels-coded design.
Large problems will complete faster by setting Rd
to a smaller value. However, this may come at the
expense of a more efficient design.
levels |
A data frame consisting of the levels-coded design with blocks stacked in order. Variables for card, version and task are appended. |
effects |
A list of the effects-coded, blocked design and diagnostics. See |
d.eff |
A list containing |
Federov, V.V. (1972). Theory of optimal experiments. Academic Press, New York.
Wheeler, R.E. (2004). AlgDesign. The R project for statistical computing. (http://www.r-project.org).
1 2 3 4 5 6 7 8 9 | ## Example 1:
## design from a single candidate set
levs1 <- c(3,3,5,4)
des <- dcm.design(levs1, 10, 6, 2)
## Example 2:
## combinatorial design from more than one candidate set
levs2 <- list(c(3,3), c(5,4))
des <- dcm.design(levs2, 10, 6, 2)
|
Loading required package: AlgDesign
dcm.design 0.9-0, Sun Oct 14 11:20:23 2018
parameters: 11, D-efficiency: 0.02031005
time elapsed: 0.2190061 secs
dcm.design 0.9-0, Sun Oct 14 11:20:23 2018
parameters: 11, D-efficiency: 0.02041246
time elapsed: 0.2724817 secs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.