PCA.Filler: PCA.Filler

Description Usage Arguments Author(s) Examples

Description

Takes a matrix with NAs and returns a matrix without NAs. Takes data.mat and calculates and returns predicted data.mat. Uses by default a 2 component PCA model. No centering or scaling. Supports NAs and similar. Rownames/colnames are retained. Columns/rows with only NAs (or similar) are removed.

Usage

1
PCA.Filler(data.mat, num.of.pcs = 2)

Arguments

data.mat

a numeric matrix or data frame. Long, wide and squared matrix supported. NAs supported.

num.of.pcs

is an integer specifying the number of components to be used. Default 2.

Author(s)

Berntsson, Martin <martin.berntsson@eon.se> and de Saint-Aubain, Philip Anton <philip-anton.desaint-aubain@knowit.dk>

Examples

1
2
3
data.mat <- airquality[, 1:4]
data.mat
PCA.Filler(data.mat)

PCA4you documentation built on May 1, 2019, 7:58 p.m.

Related to PCA.Filler in PCA4you...