designs_f | R Documentation |
Create experimental design based on factors. The design configuration assumes that all alternatives' attributes are "factors": vectors declared using 'c()' assignement. Other attribute types will be ignored.
designs_f(experimental_design, n = NULL, resample = NULL)
experimental_design |
Input experimnetal design object |
n |
The n is not used in current version |
resample |
Logical. Declares whether the dataset should be resampled (shuffled) in case of factorial design element presence. |
data.frame A dataset of choice sets (Z) respecting FF Design.
# Create alternatives alt1 <- alternative$new() alt1$add_attributes(Quality = c(0:1), Price = c(2, 2.5)) alt2 <- alternative$new() alt2$add_attributes(Size = c(1:3), Price = c(1.5, 2)) # Regroup alternatives into design edesign <- experimental_design$new(alternatives = list(alt1, alt2), design = "factorial") Z <- designs_f(edesign, n = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.