Learn R Programming

SIMPLICA (version 1.0.0)

multiplicativeMatrix: Generate an multiplicative approximation of a data matrix

Description

Approximates a data matrix using a low-rank multiplicative model based on a fixed outer product of centered row and column effects.

Usage

multiplicativeMatrix(mat)

Value

A numeric matrix of the same size as mat, containing the fitted values.

Arguments

mat

A numeric matrix with values to approximate.

Details

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.