| DUPPC | R Documentation |
Estimates a covariance matrix using a distributed U-projection principal component method. The data are projected onto the orthogonal complement of a direction vector, and local factor loading matrices are aligned using singular value decomposition before aggregation.
DUPPC(data, m, n1, K, seed = NULL, u = NULL)
data |
A numeric n by p matrix or data frame, with observations in rows and variables in columns. All values must be finite. |
m |
A positive integer specifying the number of principal components. |
n1 |
An integer specifying the number of observations sampled for each local subset, between 2 and the total sample size. |
K |
A positive integer specifying the number of local subsets. |
seed |
An optional integer random seed for reproducibility. Default is NULL, which leaves the random number generator unchanged. |
u |
An optional nonzero projection direction vector of length n. If NULL, the first principal component score vector is used. |
A list containing: Abarpro, Dbarpro, Sigmahatbarpro.
set.seed(123)
n <- 100; p <- 10; m <- 3
F <- matrix(rnorm(n * m), nrow = n, ncol = m)
A <- matrix(runif(p * m, -1, 1), nrow = p, ncol = m)
E <- matrix(rnorm(n * p, sd = 0.5), nrow = n, ncol = p)
X <- F %*% t(A) + E
result1 <- DUPPC(data = X, m = 3, n1 = 50, K = 2, seed = 123)
dim(result1$Abarpro)
dim(result1$Dbarpro)
dim(result1$Sigmahatbarpro)
u <- F[, 1]
result2 <- DUPPC(data = X, m = 3, n1 = 50, K = 2, seed = 123, u = u)
dim(result2$Sigmahatbarpro)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.