I'm Valentina and it's the first time i write here and I apologize in advance for my English.
I'm using the software R. I have to create a choice experiment.
I know that to determinate the maximum number of combination it's used: (Level)^Factor. In general attributes have the same number of level. For example, if there are 3 attributes and every one has 2 level, the total number of combination is: 3^2=9.
I have 4 attributes with a different number of level:
Attribute A: 100%, 75%, 50%, 25%;
Attribute B: yes, no;
Attribute C: yes, no;
Attribute D: 5, 10, 15, 20.
in addiction, there is an option of status quo.
How I can determinate the maximum number of combination? And after i will create a fractional design.
I've tried in this way, but I'm not sure that is correct:
> library(DoE.base)
> oa.design(nlevels=c(4,2,2,4))
I tried also to create the experimental design in this way:
> d.object <- rotation.design(
attribute.names = list(A= c("100%", "75%", "50%", "25%"), B=c ("yes", "no"), C=c("yes" , "no"), D = c("5", "10", "15", "20")),
nalternatives = 2, nblocks = 1, row.renames = FALSE, randomize = TRUE,
seed = 987)
>status.quo <- c(A= "0", B= "no", C= "no", D= "0")
>questionnaire(choice.experiment.design = d.object, common = status.quo)
and I obtain the questionnaire.
Is this procedure correct, in case of attributes with different number of levels?