nsca3basic {CA3variants} | R Documentation |
This function is used in the main function CA3variants
when the input parameter is
catype="NSCA3"
.
It decomposes the Marcotorchino index, computes principal axes, coordinates, weights of rows and columns,
total inertia (equal to the Marcotorchino index) and the rank of the matrix.
nsca3basic(x, p, q, r, test = 10^-6, ctr = T, std = T)
x |
The three-way contingency table. |
p |
The number of components of the first mode. |
q |
The number of components of the second mode. |
r |
The number of components of the third mode. |
test |
The treshold used in the algorithm. |
ctr |
The flag parameter to center the data (T or F), if F the data are not centered. |
std |
The flag parameter to weight the data (T or F), if F the data are not weighted. |
x |
The original three-way contingency table. |
xs |
The weighted three-way contingency table. |
xhat |
The three-way contingency table reconstructed after Tuckals3 by means of the principal components and core array. |
nxhat2 |
The inertia of the three-way non-symmetrical correspondence analysis |
prp |
The proportion of inertia reconstructed using the principal components
and the core array to the total inertia. |
a |
The row principal components. |
b |
The column principal components. |
cc |
The tube principal components. |
g |
The core array (generalized singular values) calculated by using the Tuckals3 algorithm. |
iteration |
The number of iterations that are required for the TUCKALS3 algorithm to converge. |
Rosaria Lombardo, Eric J Beh, Ida Camminatiello.
Beh EJ and Lombardo R (2014). Correspondence Analysis, Theory, Practice and New Strategies. John Wiley & Sons.