inverse_prob_method {primePCA} | R Documentation |
Inverse probability weighted method for estimating the top K eigenspaces
Description
Inverse probability weighted method for estimating the top K eigenspaces
Usage
inverse_prob_method(X, K, trace.it = F, center = T, normalize = F)
Arguments
X |
a numeric matrix with |
K |
the number of principal components of interest |
trace.it |
report the progress if |
center |
center each column of |
normalize |
normalize each column of |
Value
Columnwise centered matrix of the same dimension as X
.
Examples
X <- matrix(1:30 + .1 * rnorm(30), 10, 3)
X[1, 1] <- NA
X[2, 3] <- NA
v_hat <- inverse_prob_method(X, 1)
[Package primePCA version 1.2 Index]