CA.SfromX | R Documentation |
CA.SfromX
computes
the I*I row cross-product matrix S for CA from
a I * J contingency table X.
S is computed from the mean centered
row profiles, with Abdi and Bera (2014, 2018) notation:
S = M^1/2 * (R - c1') * W * (R - c1')' M^1/2.
The eigen-decomposition of S gives the eigen-values
of the CA of Xm the factor scores can aslo be obtained
from the eigen vectors after an appropriate normalization.
Columns with 0 sum are ignored.
CA.SfromX(X, center = TRUE)
X |
a data matrix with non-zero elements |
center |
= TRUE. if TRUE center the matrix. when center = FALSE, the first eigenvalue of S is equal to 1 and the first eigenvector is equal to r^(1/2), the other eigenvectors and eigenvalues are then the same are tose of the centered S. |
see Abdi and Bera, (2018) for details.
S (the cross-product matrix)
Herve Abdi
Abdi H. & Bera, M. (in Press, 2018). Correspondence analysis. In R. Alhajj and J. Rokne (Eds.), Encyclopedia of Social Networks and Mining (2nd Edition). New York: Springer Verlag
## Not run: if(interactive()){ data(authors,package = 'ExPosition') X <- as.matrix(authors$ca$data) S <- CA.SfromX(X) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.