Approximates a data matrix using a low-rank multiplicative model based on a fixed outer product of centered row and column effects.
multiplicativeMatrix(mat)A numeric matrix of the same size as mat, containing the fitted values.
A numeric matrix with values to approximate.
The model assumes:
$$M[i,j] = mu + a * rowEffect[i] * colEffect[j]$$
where mu is the overall mean of the input matrix, and
rowEffect and colEffect are centered integer sequences.