Compute Linear Discriminant Scores
getLDscores(modelLDA, data, nScores = -1)
A matrix of linear discriminant scores, where rows correspond to
observations and columns correspond to the computed discriminant scores.
If nScores > 0
, only the specified number of scores is returned; otherwise,
all scores are computed and returned.
A fitted LDA model object containing the scaling matrix and the reference structure for missing data.
A data frame containing the predictor variables for which to compute the linear discriminant scores.
An integer specifying the number of discriminant scores to
compute. If -1
(default), all scores are computed.