Description Usage Arguments Author(s) References See Also Examples
View source: R/caEncodedDesign.R
Function caEncodedDesign encodes full or fractional factorial design. Function converts design of experiment to matrix of profiles.
1 | caEncodedDesign(design)
|
design |
design of experiment returned by caFactorialDesign function |
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 caRecreatedDesign
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #Example 1
library(conjoint)
experiment<-expand.grid(
price=c("low","medium","high"),
variety=c("black","green","red"),
kind=c("bags","granulated","leafy"),
aroma=c("yes","no"))
design=caFactorialDesign(data=experiment,type="orthogonal")
print(design)
code=caEncodedDesign(design)
print(code)
print(cor(code))
write.csv2(design,file="orthogonal_factorial_design.csv",row.names=FALSE)
write.csv2(code,file="encoded_orthogonal_factorial_design.csv",row.names=FALSE)
|
This is package 'modeest' written by P. PONCET.
For a complete list of functions, use 'library(help = "modeest")' or 'help.start()'.
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE
3: .onUnload failed in unloadNamespace() for 'rgl', details:
call: fun(...)
error: object 'rgl_quit' not found
price variety kind aroma
4 low green bags yes
9 high red bags yes
10 low black granulated yes
17 medium red granulated yes
21 high black leafy yes
23 medium green leafy yes
29 medium black bags no
42 high green granulated no
52 low red leafy no
price variety kind aroma
4 1 2 1 1
9 3 3 1 1
10 1 1 2 1
17 2 3 2 1
21 3 1 3 1
23 2 2 3 1
29 2 1 1 2
42 3 2 2 2
52 1 3 3 2
price variety kind aroma
price 1 0 0 0
variety 0 1 0 0
kind 0 0 1 0
aroma 0 0 0 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.