Learn R Programming

mdatools (version 0.9.1)

predict.pca: PCA predictions

Description

Applies PCA model to a new data

Usage

# S3 method for pca
predict(object, x, cal = FALSE, ...)

Arguments

object

a PCA model (object of class pca)

x

a matrix with data values

cal

logical, if TRUE the predictions are made for calibration set

...

other arguments

Value

PCA results (an object of class pcares)