Learn R Programming

ade4 (version 1.7-5)

mcoa: Multiple CO-inertia Analysis

Description

performs a multiple CO-inertia analysis, using an object of class ktab.

Usage

mcoa(X, option = c("inertia", "lambda1", "uniform", "internal"), scannf = TRUE, nf = 3, tol = 1e-07) "print"(x, ...) "summary"(object, ...) "plot"(x, xax = 1, yax = 2, eig.bottom = TRUE, ...)

Arguments

X
an object of class ktab
option
a string of characters for the weightings of the arrays options :

scannf
a logical value indicating whether the eigenvalues bar plot should be displayed
nf
if scannf FALSE, an integer indicating the number of kept axes
tol
a tolerance threshold, an eigenvalue is considered positive if it is larger than -tol*lambda1 where lambda1 is the largest eigenvalue.
x, object
an object of class 'mcoa'
...
further arguments passed to or from other methods
xax, yax
the numbers of the x-axis and the y-axis
eig.bottom
a logical value indicating whether the eigenvalues bar plot should be added

Value

mcoa returns a list of class 'mcoa' containing :

References

Chessel, D. and Hanafi, M. (1996) Analyses de la co-inertie de K nuages de points, Revue de Statistique Appliquée, 44, 35--60.

Examples

Run this code
data(friday87)
w1 <- data.frame(scale(friday87$fau, scal = FALSE))
w2 <- ktab.data.frame(w1, friday87$fau.blo, tabnames = friday87$tab.names)
mcoa1 <- mcoa(w2, "lambda1", scan = FALSE)
mcoa1
summary(mcoa1)
plot(mcoa1)

Run the code above in your browser using DataLab