
Extract Observation Discriminant Scores for Linear Discriminant Analysis
Source:R/scores.lda.R
scores.lda.RdThis is a thin wrapper for predict_discrim() to provide a scores() method for discriminant analysis
from MASS::lda().
Usage
# S3 method for class 'lda'
scores(x, prior = x$prior, dimen, ...)Arguments
- x
An object of class
"lda"such as results fromMASS::lda()- prior
The prior probabilities of the classes. By default, taken to be the proportions in what was set in the call to
MASS::lda()- dimen
The dimension of the space to be used. If this is less than the number of available dimensions, \(min(p, ng-1)\), only the first
dimendiscriminant components are used.- ...
Unused; for compatibility with the generic