des_function | R Documentation |
It provides fractional factorial or ortogonal design
des_function(attribute.names,alt=2,set=NULL,block=NULL,typology,seed=NULL)
attribute.names |
A list containing all the attributes and attributes levels |
typology |
A numeric vector that has value 0 if design is fractional factorial, 1 ortogonal |
alt |
A numeric vector containing the number of design alternatives |
set |
A numeric vector containing the choice tasks number |
block |
A numeric vector containing the blocks number |
seed |
A numeric vector containing the seed for the fractional factorial design |
It provides fractional factorial or ortogonal design. For the ortogonal design, according to the total number of attributes levels chosen by the user, the function will ask the respondents the number of total questions and choice task.
design |
The experimental design data.frame |
Gabriele Iannaccone
Federov, V.V. (1972). Theory of optimal experiments. Academic Press, New York. Aizaki H (2012). Basic Functions for Supporting an Implementation of Choice Experiments in R.Journal of Statistical Software, 50(C2). doi:10.18637/jss.v050.c02. Wheeler, R.E. (2004). AlgDesign. The R project for statistical computing. (http://www.r-project.org).
optFederov, optBlock, dcm.design.cand,support.CEs,DoE.base
#in this example a fractional factorial design is created
design<-des_function(alt=2,set=10,block=2,typology=0,attribute.names=list(delivery_cost = c(3,5,6,10),delivery_time = c("Same day","2/3 days"),delivery_location=c("Home","Pick-up"),
co2emissions=c(15,100,150,200,300),carrier_drivers_benefits=c("Low","Medium","High")),seed=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.