performPCA: Perform principal component analysis after processing missing...

Description Usage Arguments Value See Also Examples

View source: R/analysis_dimReduction_pca.R

Description

Perform principal component analysis after processing missing values

Usage

1
performPCA(data, center = TRUE, scale. = FALSE, naTolerance = 0, ...)

Arguments

data

an optional data frame (or similar: see model.frame) containing the variables in the formula formula. By default the variables are taken from environment(formula).

center

a logical value indicating whether the variables should be shifted to be zero centered. Alternately, a vector of length equal the number of columns of x can be supplied. The value is passed to scale.

scale.

a logical value indicating whether the variables should be scaled to have unit variance before the analysis takes place. The default is FALSE for consistency with S, but in general scaling is advisable. Alternatively, a vector of length equal the number of columns of x can be supplied. The value is passed to scale.

naTolerance

Integer: percentage of NA tolerance

...

Arguments passed on to stats::prcomp

Value

PCA result in a prcomp object

See Also

plotPCA, performICA and plotICA

Examples

1

nuno-agostinho/psichomics documentation built on Nov. 1, 2017, 3:18 p.m.