PCA.Calculate: Adapted version of R's base Principal Component Analysis...

Description Usage Arguments Value Author(s)

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

1

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).

var.explained

percentage of variance explained per pc.

t

scores.

Author(s)

Tim Dorscheidt


MetStaT documentation built on May 2, 2019, 1:45 p.m.