UPPC: Projection-on-Complement Principal Component Analysis

View source: R/UPPC.R

UPPCR Documentation

Projection-on-Complement Principal Component Analysis

Description

Performs principal component analysis after projecting the standardized data onto the orthogonal complement of the leading principal component score direction.

Usage

UPPC(data, m)

Arguments

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.

Value

Apro, Dpro, Sigmahatpro.

Examples

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)

CoFM documentation built on Nov. 18, 2026, 5:08 p.m.

Related to UPPC in CoFM...