Changing the sign of negative core values.
This function makes the signs of the largest core elements positive
to facilitate interpretation. The appropriate columns of the component matrices for inversion
are determined and are reversed accordingly.
signscore(a, b, cc, I, J, K, p, q, r, core, IFIXA, IFIXB, IFIXC)
a
: The first component matrix A.
b
: The second component matrix B.
cc
: The third component matrix C.
I
: The row number of the first mode of the three-way contingency table.
J
: The column number of the second mode of the three-way contingency table.
K
: The tube number of the third mode of the three-way contingency table.
p
: The dimension number of the first mode.
q
: The dimension number of the second mode.
r
: The dimension number of the third mode.
core
: The core array (generalized singular values).
IFIXA
: The flag parameter to indicate whether the first component (A) belongs to a fixed mode.
Fixed modes should not have their signs changed.
IFIXB
: The flag parameter to indicate whether the second component (B) belongs to a fixed mode.
Fixed modes should not have their signs changed.
IFIXC
: The flag parameter to indicate whether the third component (C) belongs to a fixed mode.
Fixed modes should not have their signs changed.
g: The core array.
gord: the core array ordered with respect to the largest values (descending order).
a: The first matrix of components.
aord: The ordered first matrix of the components.
b: The second matrix of the components.
bord: The ordered second matrix of the components.
cc: The third matrix of the components.
ccord: The ordered third matrix of the components.
Kroonenberg PM (1994) The TUCKALS line: a suite of programs for three-way data analysis. Computational Statistics and Data Analysis, 18, 73--96.
Rosaria Lombardo and Pieter M Kroonenberg.