View source: R/multiplicativeMatrix.R
multiplicativeMatrix | R Documentation |
Approximates a data matrix using a low-rank multiplicative model based on a fixed outer product of centered row and column effects.
multiplicativeMatrix(mat)
mat |
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.
A numeric matrix of the same size as mat
, containing the fitted values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.