Learn R Programming

CA3variants (version 3.3.1)

loss1.3ordered: General loss criterion

Description

This function represents the general loss function on which is based the Trivariate Moment Decomposition and calculates the difference between two arrays, x and xhat, where x is the three-way contingency table and xhat is the reconstruction of this table by means of components and core array.

Usage

loss1.3ordered(param, comp.old)

Value

The difference between three-way contingency table and its reconstruction from the Trivariate Moment Decomposition model.

Arguments

param

The matrices of the row, column and tube components derived via the Trivariate Moment Decomposition model.

comp.old

The matrices of the row, column and tube components derived in the foregoing iteration of the Trivriate Moment Decomposition algorithm.

Author

Rosaria Lombardo, Eric J Beh, Ida Camminatiello.