The following actions are carried out: 1. data.frames are converted to matrix form and labels converted to integers 2. An intercept column is added if requested 3. centering and scaling is applied if requested.
PreProcessingPredict(modelform, newdata, y = NULL, classnames = NULL,
scaling = NULL, intercept = FALSE)
Formula object with model
data.frame object with objects
Vector or factor with class assignments (default: NULL)
Vector with class names
Apply a given z-transform to the design matrix X (default: NULL)
Whether to include an intercept in the design matrices
list object with the following objects:
design matrix of the labeled data
integer vector indicating the labels of the labeled data