Description Usage Arguments Value References Examples
View source: R/augment_levels.R
Augments the full factorial design with a column summarising the levels of that design. Importantly, it also adds the B-matrix as an attribute.
1 |
full_factorial |
a 'data.table' generated from the 'full_factorial' function. |
a 'data.frame' with an additional column identifying the level and the B-matrix attribute.
Street, D. J.; Burgess, L. & Louviere, J. J. Quick and easy choice sets: Constructing optimal and nearly optimal stated choice experiments International Journal of Research in Marketing, 2005 , 22 , 459 - 470
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # See Practical Introduction to ExpertChoice Vignette. Step 2.
#Step 1
attrshort = list(condition = c("0", "1", "2"),
technical =c("0", "1", "2"),
provenance = c("0", "1"))
#Step 2! - the augment_levels function
#' # ff stands for "full fatorial"
ff <- full_factorial(attrshort)
af <- augment_levels(ff)
# af stands for "augmented factorial"
af
# Compare ff and af. - do not confuse them. They serve different purposes.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.