Skip to contents

\(Y - \hat Y\), matching residuals.nmf. Without this method residuals() fell through to stats::residuals.default and returned NULL, even though fitted() worked.

Usage

# S3 method for class 'nmf.gmm'
residuals(object, Y, ...)

Arguments

object

An object of class "nmf.gmm".

Y

The observation matrix the model was fitted on.

...

Ignored.

Value

The residual matrix.

Development status

Part of the experimental NMF-GMM family: see nmf.gmm. The interface may change in future versions — argument names, defaults and the contents of the returned object are not yet stable.