Learn R Programming

mdatools (version 0.7.0)

pca.cal: PCA model calibration

Description

Calibrates (builds) a PCA model for given data and parameters

Usage

pca.cal(x, ncomp, center = T, scale = F, method = "svd")

Arguments

x
matrix with data values
ncomp
number of principal components to calculate
center
logical, do mean centering or not
scale
logical, do standardization or not
method
algorithm for compiting PC space (only 'svd' is supported so far)

Value

an object with calibrated PCA model