| nmf.gmm.inference | R Documentation |
This function is experimental and still under development. The interface may change in future versions: argument names, defaults and the contents of the returned object are not yet stable. Code written against it today may need adjusting after an update. The rest of the package does not carry this caveat.
nmf.gmm.inference adds Wald inference on the covariate-coefficient
matrix C (=\Theta) of a fitted nmf.gmm object,
conditional on the estimated basis \hat X and mixture. It reports the
analytic outer-product (mixture-information) standard error — the
coverage-calibrated choice at K>1 — together with a
wild-bootstrap standard error and percentile confidence interval,
mirroring nmfre.inference / nmfkc.inference.
Supported for the tied-covariance variant.
nmf.gmm.inference(object, Y, A = object$A, ...)
object |
A fitted |
Y |
The data matrix used in the fit. |
A |
The covariate matrix used in the fit. Default |
... |
Additional arguments, named as in the other wild-bootstrap
inference functions of the package: |
object with class c("nmf.gmm.inference", "nmf.gmm")
and added components: coefficients (data frame with Basis,
Covariate, Estimate, SE, BSE, z_value,
p_value, CI_low, CI_high), C.se.outer,
C.se.sandwich, C.se.boot (Q x R matrices) and Xi
(= X C).
nmf.gmm, nmf.gmm.select
set.seed(1)
Y <- matrix(abs(rnorm(20 * 60)) + 1, 20, 60); A <- rbind(1, rnorm(60))
fit <- nmf.gmm(Y, A, rank = 2, K = 2)
fit <- nmf.gmm.inference(fit, Y, A, wild.B = 300)
head(fit$coefficients)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.