PCAReconstructionError: Calculates reconstruction error for Principal Components...

Description Usage Arguments Examples

View source: R/PCARE.R

Description

Calculates reconstruction error for Principal Components Analysis – PCA – with output from stats::prcomp or PCA in this package.

Usage

1
PCAReconstructionError(data, mod.pca, max_components)

Arguments

data
  • original data used to create PCA model

mod.pca
  • a PCA or stats::prcomp model

max_components
  • Maximum number of PCs to include

Examples

1
iris_re <- PCAReconstructionError(iris[,1:4], PCA(iris[,1:4]))

IsaacShaffer/PCAtools documentation built on Dec. 31, 2020, 1:06 p.m.