qrpca: QR based PCA

View source: R/qrpca.R

qrpcaR Documentation

QR based PCA

Description

Performs a QR based principal component analysis, The result is returned as an object of class prcomp.

Usage

qrpca(x, center = TRUE, scale = FALSE, cuda = FALSE)

Arguments

x

a numeric matrix or data frame which provides the data for the principal component analysis.

center

a logical value indicating whether the empirical mean of (the columns) of x should be subtracted.

scale

a logical value indicating whether the columns of x should be scaled to have unit variance before the analysis takes place. The default is FALSE for consistency with prcomp. @param cuda a logical value indicating whether cuda acceleration should be used. The default is FALSE.

Details

qrpca computes a principal component (PC) using QR decomposition as intermediate step. Matrix operations mostly uses torch for performance.

Value

qrpca returns a list with class prcomp containing the following elements:

sdev

the additional standard deviation explained by each component.

rotation

the matrix of loadings, containing the principal axes as columns.

x

the scores matrix containing the principal components as columns.

center, scale

the centering and scaling used, or FALSE


RafaelSdeSouza/qrprcomp documentation built on June 16, 2022, 3:46 p.m.