summary.nmfkc: Summary method for objects of class 'nmfkc'

View source: R/nmfkc.R

summary.nmfkcR Documentation

Summary method for objects of class nmfkc

Description

Produces a summary of an nmfkc object, including matrix dimensions, runtime, fit statistics, and diagnostics.

Usage

## S3 method for class 'nmfkc'
summary(object, ...)

Arguments

object

An object of class nmfkc, i.e., the return value of nmfkc.

...

Additional arguments (currently unused).

Details

Anchors and identification. With the column scale of X fixed, the fits (XT, T^{-1}\Theta) give the same X\Theta for every invertible T with \mathbf 1^\top T = \mathbf 1^\top, XT \ge 0 and T^{-1}\Theta \ge 0 (\Theta is C, or B without covariates). An anchor row of X (a row carrying one basis) and an anchor column of \Theta (a column non-zero for one basis) for every basis force T to be a permutation; anchors on one side are not enough (X = I_2 with \Theta = [1\ 1;\ 1\ 2] has anchors in X and still a continuum of equivalent fits).

The summary prints two lines of anchor purity, for X and for \Theta: the smallest over the bases of the largest share a basis has in a row of X (or a column of \Theta), the basis attaining it, and how many bases have an anchor. The shares are plain shares; the anchors are counted by the tolerances of the identification verdict: a row of X with share at least 0.999, a column of \Theta whose other entries are at most 1e-3 or at most 1\ one line of Identification, the verdict of nmfkc.inference and the other inference functions: anchors in X for every basis with the rows of \Theta pinned one at a time (or the mirror route), a fixed column scale of X, and A of full row rank. It is a sufficient condition on the fit, with the size of the zeros it rests on (how much an equivalent fit can mix the bases); a fit that fails it may still be unique. The verdict costs about Q^2K and is computed when Q^2K \le 10^6; above that only anchors on both sides are decided. The values are in anchors (and fit$criterion$anchors): X.anchor.purity, X.anchor.row, X.anchor (logical, per basis), C.anchor.purity, C.anchor.col, C.anchor, anchor.both, A.full.rank and tol; the verdict in identified.approx and identification. With negative entries in \Theta it does not apply. Up to 1.0.2 the summary printed a separability (the X side alone) and returned separability, anchor.purity and anchor.row; X.anchor.purity and X.anchor.row replace them.

Value

An object of class summary.nmfkc, containing summary statistics. Among them, anchors, identified.approx and identification; see Details.

See Also

nmfkc, nmfkc.inference, plot.nmfkc

Examples

Y <- matrix(cars$dist, nrow = 1)
A <- rbind(1, cars$speed)
result <- nmfkc(Y, A, rank = 1)
summary(result)


nmfkc documentation built on Nov. 30, 2026, 1:06 a.m.