Principal component analysis (PCA) based on partial singular value decomposition (SVD).

getPC(X, ncomp, center = TRUE, scale = FALSE, sparse = FALSE)

Arguments

X

Matrix.

ncomp

Integer.

center

Logic.

scale

Logic.

sparse

Use sparse matrix or not.

Value

A list containing

scores

Score matrix for X.

loadings

Laoding matrix for X.

sdev
totVar
props
accuProps
ncomp
selectFeat
reg_re