DSPC: Distributed Sparse Principal Component Analysis

View source: R/DSPC.R

DSPCR Documentation

Distributed Sparse Principal Component Analysis

Description

Performs distributed sparse principal component analysis (DSPC) on a numeric dataset split across multiple nodes. Estimates sparse loading matrices, residual variances, and covariance matrices for each node.

Usage

DSPC(data, m, gamma, n1, K)

Arguments

data

A numeric matrix containing the total dataset.

m

An integer specifying the number of principal components.

gamma

A numeric value specifying the sparsity parameter for SPC.

n1

An integer specifying the length of each data subset.

K

An integer specifying the number of nodes.

Value

A list with the following components:

Aspro

List of sparse loading matrices for each node.

Dspro

List of diagonal residual variance matrices for each node.

Sigmahatpro

List of covariance matrices for each node.

Examples

set.seed(123)
data <- matrix(rnorm(500), nrow = 100, ncol = 5)
DSPC(data = data, m = 3, gamma = 0.03, n1 = 20, K = 5)

DSFM documentation built on Dec. 1, 2025, 5:09 p.m.

Related to DSPC in DSFM...