powered by
Performs linear discriminant analysis.
LDAModel( prior = numeric(), tol = 1e-04, method = c("moment", "mle", "mve", "t"), nu = 5, dimen = integer(), use = c("plug-in", "debiased", "predictive") )
MLModel class object.
MLModel
prior probabilities of class membership if specified or the class proportions in the training set otherwise.
tolerance for the determination of singular matrices.
type of mean and variance estimator.
degrees of freedom for method = "t".
method = "t"
dimension of the space to use for prediction.
type of parameter estimation to use for prediction.
factor
dimen
The predict function for this model additionally accepts the following argument.
predict
prior
prior class membership probabilities for prediction data if different from the training set.
Default values and further model details can be found in the source links below.
lda, predict.lda, fit, resample
lda
predict.lda
fit
resample
fit(Species ~ ., data = iris, model = LDAModel)
Run the code above in your browser using DataLab