Learn R Programming

pscore (version 0.4.0)

.preparePredict: Internal function to prepare data for prediction

Description

Internal function to prepare data for prediction

Usage

.preparePredict(object, newdata, groups)

Arguments

object

An object of S4 class “MahalanobisScores”, “SumScores”, or “FactorScores” containing a model and results to be used to get predictions on new data.

newdata

A data frame with identical variable names as was used to build the initial model.

groups

A vector with the same length as the data frame in newdata, has rows, containing the groups each row belongs to. See CompositeData for more details.

Value

An object of S4 class “CompositeReady”