PCA.Calculate:
Adapted version of R's base Principal Component Analysis function (svd)
Description
In addition to the svd function in R's base package, this principal component (pc) analysis function also adds the variance explained per pc, and the score matrix (t).
Usage
PCA.Calculate(data)
Arguments
data
the data matrix upon which the pca is to performed.
Value
A list of results is returned, containing:
d
a vector containing the singular values of x, of length min(n, p).
v
a matrix whose columns contain the right singular vectors of x, present if nv > 0. Dimension c(p, nv).