Description Usage Arguments Author(s) References See Also Examples
View source: R/caRecreatedDesign.R
Function caRecreatedDesign reconstructs the factorial design on the basis of arguments in the form of: a vector of variables (attributes) names, a vector of the number of variables' levels, a vector of variable level names and the list of numbers of the reconstructed profiles.
1 | caRecreatedDesign(attr.names,lev.numbers,z,prof.numbers)
|
attr.names |
a vector of variables (attributes) names |
lev.numbers |
a vector of the number of variables' levels |
z |
a vector of variable level names |
prof.numbers |
list of numbers of the reconstructed profiles |
Andrzej Bak andrzej.bak@ue.wroc.pl,
Tomasz Bartlomowicz tomasz.bartlomowicz@ue.wroc.pl
Department of Econometrics and Computer Science, Wroclaw University of Economics, Poland http://keii.ue.wroc.pl/conjoint
Bak A., Bartlomowicz T. (2012), Conjoint analysis method and its implementation in conjoint R package, [In:] Pociecha J., Decker R. (Eds.), Data analysis methods and its applications, C.H.Beck, Warszawa, p.239-248.
Bak A. (2009), Analiza Conjoint [Conjoint Analysis], [In:] Walesiak M., Gatnar E. (Eds.), Statystyczna analiza danych z wykorzystaniem programu R [Statistical Data Analysis using R], Wydawnictwo Naukowe PWN, Warszawa, p. 283-317.
Green P.E., Srinivasan V. (1978), Conjoint Analysis in Consumer Research: Issues and Outlook, "Journal of Consumer Research", September, 5, p. 103-123.
SPSS 6.1 Categories (1994), SPSS Inc., Chicago.
caFactorialDesign
and caEncodedDesign
1 2 3 4 5 6 7 8 9 10 | #Example 1
library(conjoint)
attrNames<-c("price","variety","kind","aroma")
levNumbers<-c(3,3,3,2)
z<-c("low","medium","high","black","green","red","bags","granulated","leafy","yes","no")
profNumbers<-c(3,4,14,20,27,29,33,35,39,43,46,50,51)
design<-caRecreatedDesign(attrNames,levNumbers,z,profNumbers)
print(design)
write.csv2(design$dnumbers,file="design_numbers.csv",row.names=FALSE)
write.csv2(design$dnames,file="design_names.csv",row.names=FALSE)
|
$dnumbers
price variety kind aroma
3 3 1 1 1
4 1 2 1 1
14 2 2 2 1
20 2 1 3 1
27 3 3 3 1
29 2 1 1 2
33 3 2 1 2
35 2 3 1 2
39 3 1 2 2
43 1 3 2 2
46 1 1 3 2
50 2 2 3 2
51 3 2 3 2
$dnames
price variety kind aroma
3 high black bags yes
4 low green bags yes
14 medium green granulated yes
20 medium black leafy yes
27 high red leafy yes
29 medium black bags no
33 high green bags no
35 medium red bags no
39 high black granulated no
43 low red granulated no
46 low black leafy no
50 medium green leafy no
51 high green leafy no
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.