Learn R Programming

mdatools (version 0.14.1)

predict.simca: SIMCA predictions

Description

Applies SIMCA model to a new data set

Usage

# S3 method for simca
predict(object, x, c.ref = NULL, cal = FALSE, ...)

Value

SIMCA results (an object of class simcares)

Arguments

object

a SIMCA model (object of class simca)

x

a matrix with x values (predictors)

c.ref

a vector with reference class names (same as class names for models)

cal

logical, are predictions for calibration set or not

...

other arguments

Details

See examples in help for simca function.