SVDforPCA: Singular value decomposition for PCA analysis

Description Usage Arguments Value Examples

View source: R/SVDforPCA.R

Description

PCA over a X matrix by singular value decomposition, the preprocessing involves the mean-centering of X.

Usage

1
SVDforPCA(x, ncomp = min(dim(x)))

Arguments

x

A data matrix on which will be based the analysis.

ncomp

Number of Principal Components.

Value

A list with the following elements:

scores

Scores

loadings

Loadings

eigval

Eigenvalues

pcd

Singular values

pcu

Normalized scores

var

Explained variance

cumvar

Cumulated explained variance

original.dataset

Original dataset

Examples

1
2
data('HumanSerum')
PCA.res = SVDforPCA(HumanSerumSpectra)

ManonMartin/MBXUCL documentation built on Nov. 26, 2021, 8:45 p.m.