| UPPC | R Documentation |
Performs principal component analysis after projecting the standardized data onto the orthogonal complement of the leading principal component score direction.
UPPC(data, m)
data |
A numeric n by p data matrix, with observations in rows and variables in columns. |
m |
A positive integer specifying the number of principal components to retain. Must be smaller than p. |
Apro, Dpro, Sigmahatpro.
set.seed(123)
n <- 100; p <- 10; m <- 3
F <- matrix(rnorm(n * m), nrow = n)
A <- matrix(runif(p * m, -1, 1), nrow = p)
E <- matrix(rnorm(n * p, sd = 0.5), nrow = n)
X <- F %*% t(A) + E
result <- UPPC(data = X, m = 3)
dim(result$Apro)
length(result$Dpro)
dim(result$Sigmahatpro)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.