| nmfre.inference | R Documentation |
nmfre.inference performs statistical inference on the coefficient
matrix C (\Theta) from a fitted nmfre model,
conditional on the estimated basis matrix \hat{X} and random
effects \hat{U}.
Under the working model Y^* = Y - X\hat{U} \approx X C A + \varepsilon,
inference is conducted via sandwich covariance estimation and
one-step wild bootstrap with non-negative projection.
The result is compatible with nmfkc.DOT for visualization
(pass the result directly as x with type = "YXA").
nmfre.inference(object, Y, A = NULL, wild.bootstrap = TRUE, ...)
object |
An object of class |
Y |
Observation matrix (P x N). Must match the data used in
|
A |
Covariate matrix (K x N). Default is |
wild.bootstrap |
Logical. If |
... |
Additional arguments:
|
Inference is on the representation returned by nmfre
(by default the geomin member of its identification region; with
orient = "none" the point where its algorithm stopped; see
there). Its C.ident.* and X.ident.* ranges are kept.
Profile intervals. With profile = TRUE, for each entry the
profile marginal likelihood is followed outward from the end of its
identification region until twice the drop exceeds the
\chi^2_1 quantile; the interval is the level set. The profile is
computed by continuation: the entry moves outward in steps of
profile.step standard errors, and each constrained maximization
(BFGS) starts from the previous solution. The search is local, which is
meant to keep it away from other components of the region and from
relabellings (they attain the same maximum), but it neither certifies a
global maximum nor excludes other branches. C.profile.reached
records whether the level was crossed on both sides within
profile.maxstep steps.
The input object with additional inference components:
sigma2.used |
Estimated |
C.vec.cov |
Full covariance matrix for |
C.se |
Sandwich standard errors for |
C.se.boot |
Bootstrap standard errors for |
C.ci.lower |
Lower CI bounds for |
C.ci.upper |
Upper CI bounds for |
coefficients |
Data frame with Basis, Covariate, Estimate, SE, BSE, z_value, p_value, CI_low, CI_high. |
C.p.side |
P-value type used. |
identified.approx |
Whether |
identification |
The parts of the diagnostic, plus |
C.profile.lower, C.profile.upper, C.profile.reached |
With
|
Satoh, K. (2026). Wild Bootstrap Inference for Non-Negative Matrix Factorization with Random Effects. arXiv:2603.01468. https://arxiv.org/abs/2603.01468
nmfre, nmfkc.DOT,
summary.nmfre
Y <- matrix(cars$dist, nrow = 1)
A <- rbind(intercept = 1, speed = cars$speed)
res <- nmfre(Y, A, rank = 1, wild.bootstrap = FALSE)
res2 <- nmfre.inference(res, Y, A)
res2$coefficients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.