DUPPC: Distributed U-projection Principal Component Method

View source: R/DUPPC.R

DUPPCR Documentation

Distributed U-projection Principal Component Method

Description

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.

Usage

DUPPC(data, m, n1, K, seed = NULL, u = NULL)

Arguments

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.

Value

A list containing: Abarpro, Dbarpro, Sigmahatbarpro.

Examples

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)


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

Related to DUPPC in CoFM...