multiplicativeMatrix: Generate an multiplicative approximation of a data matrix

View source: R/multiplicativeMatrix.R

multiplicativeMatrixR Documentation

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)

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.

Value

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


SIMPLICA documentation built on Sept. 11, 2025, 1:08 a.m.