Learn R Programming

SensoMineR (version 1.27)

fcp: Free choice profiling

Description

Free choice profiling with confidence ellipses

Usage

fcp(X,group,scale=TRUE, ncp = NULL, axes=c(1,2), name.group = NULL, level.conf = 0.95, 
    nbsim=500, nbchoix=NULL, cex=1, color=NULL, title=NULL, new.plot=TRUE, 
	graph=c("ind","var","ellipse"))

Value

Returns a list with the result of the MFA and the bootstraped results that can be used with the plotellipse function.

Arguments

X

data.frame

group

a list indicating the number of variables in each group; used when method="freechoice" or method="hsort"

scale

boolean, used when method="freechoice"; if TRUE, the variables are scaled

ncp

number of components used to procrustes the virtual subspaces on the true subspace; NULL by default and the number of components is estimated

axes

a length 2 vector specifying the components to plot

name.group

the names of each group of variables

level.conf

confidence level used to construct the ellipses. By default, 0.95

nbsim

the number of simulations (corresponding to the number of virtual panels) used to compute the ellipses

nbchoix

the number of panelists forming a virtual panel, by default the number of panelists in the original panel

cex

cf. function par in the graphics package

color

a vector with the colors used; by default there are 35 colors defined

title

string corresponding to the title of the graph you draw (by default NULL and a title is chosen)

new.plot

boolean, if TRUE, a new graphical device is created

graph

list with the graphs to draw; "ind", "var" and "ellipse" by default

Author

Francois Husson

Details

Perform MFA on the data frame and calculate confidence ellipses around the products

Examples

Run this code
if (FALSE) {
data(perfume_fcp)
res <- fcp(perfume_fcp, group = c(12,7,7,7,6,8))
}

Run the code above in your browser using DataLab