Internal function to prepare data for prediction
.preparePredict(object, newdata, groups)
An object of S4 class “MahalanobisScores”, “SumScores”, or “FactorScores” containing a model and results to be used to get predictions on new data.
A data frame with identical variable names as was used to build the initial model.
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.
An object of S4 class “CompositeReady”