The function computes the stopping criteria needed for the Tucker3 algorithm.
criter(x, xhat)
The criterion used in Tuckals3 is the sum of squares of the differences between the weighted data array and the reconstructed data array.
The three-way contingency table
The reconstruction of the data array using the three component matrices and the core array.
Rosaria Lombardo, Eric J Beh.
Kroonenberg PM (1994) The TUCKALS line: a suite of programs for three-way data analysis. Computational Statistics and Data Analysis, 18, 73--96.