Usage
CaGalt(Y, X, type="s", conf.ellip=FALSE, nb.ellip=100, level.ventil=0, sx=NULL, graph=TRUE, axes=c(1,2))
Arguments
Y
a data frame with n rows (individuals) and p columns (frequencies)
X
a data frame with n rows (individuals) and k columns (quantitative or categorical variables)
type
the type of variables: "c" or "s" for quantitative variables and "n" for categorical variables. The difference is that for "s" variables are scaled to unit variance (by default, variables are scaled to unit variance)
conf.ellip
boolean (FALSE by default), if TRUE, draw confidence ellipses around the frequencies and the variables when "graph" is TRUE
nb.ellip
number of bootstrap samples to compute the confidence ellipses (by default 100)
level.ventil
proportion corresponding to the level under which the category is ventilated; by default, 0 and no ventilation is done. Available only when type is equal to "n"
sx
number of principal components kept from the principal axes analysis of the contextual variables (by default is NULL and all principal components are kept)
graph
boolean, if TRUE a graph is displayed
axes
a length 2 vector specifying the components to plot