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('iris')
PCA.res = SVDforPCA(iris[,1:4])

ManonMartin/PAMMULAD documentation built on May 23, 2019, 9 p.m.