powered by
Inverse probability weighted method for estimating the top K eigenspaces
inverse_prob_method(X, K, trace.it = F, center = T, normalize = F)
a numeric matrix with \(NA\)s or "Incomplete" matrix object (see softImpute package)
the number of principal components of interest
report the progress if trace.it == TRUE
trace.it == TRUE
center each column of X if center == TRUE. The default value is TRUE.
X
center == TRUE
TRUE
normalize each column of X such that its sample variance is 1 if normalize == TRUE. The default value is False.
normalize == TRUE
False
Columnwise centered matrix of the same dimension as \(X\).
# NOT RUN { X <- matrix(1:30 + .1 * rnorm(30), 10, 3) X[1, 1] <- NA X[2, 3] <- NA v_hat <- inverse_prob_method(X, 1) # }
Run the code above in your browser using DataLab