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

View source: R/nmfre.R

summary.nmfreR Documentation

Summary method for objects of class nmfre

Description

Displays a concise summary of an NMF-RE model fit, including dimensions, convergence, variance components, and a coefficient table following standard R regression output conventions.

Usage

## S3 method for class 'nmfre'
summary(
  object,
  ci.show = FALSE,
  max.coef = 20,
  by = c("covariate", "basis"),
  ...
)

## S3 method for class 'summary.nmfre'
print(x, ...)

Arguments

object

An object of class nmfre, returned by nmfre.

ci.show

Logical. If TRUE, show confidence interval columns (default FALSE). Named object-first to match the package style (C.signed, X.init, ...). Legacy show_ci is accepted via ....

max.coef

Largest number of coefficient rows to print (default 20). The table has one row per (basis, covariate) pair, so it grows as Q\times K; beyond the cap the significant rows are preferred and the omission is reported.

by

Grouping order of the coefficient rows: "covariate" (default; list all bases for each covariate) or "basis" (list all covariates for each basis).

...

Additional arguments (currently unused).

x

An object of class "summary.nmfre".

Value

The input object, invisibly.

See Also

nmfre, nmfre.inference

Examples

Y <- matrix(cars$dist, nrow = 1)
A <- rbind(intercept = 1, speed = cars$speed)
res <- nmfre(Y, A, rank = 1, maxit = 5000)
summary(res)


nmfkc documentation built on Oct. 30, 2026, 9:06 a.m.