des_function: Experimental design creation

View source: R/function_des.R

des_functionR Documentation

Experimental design creation

Description

It provides fractional factorial or ortogonal design

Usage

des_function(attribute.names,alt=2,set=NULL,block=NULL,typology,seed=NULL)

Arguments

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

Details

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.

Value

design

The experimental design data.frame

Author(s)

Gabriele Iannaccone

References

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).

See Also

optFederov, optBlock, dcm.design.cand,support.CEs,DoE.base

Examples

#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)
  

Iannacks/SP.Survey documentation built on May 18, 2023, 11:23 a.m.