This function predicts the class labels or class probabilities for new data
using a fitted ULDA model. The prediction can return either the most likely
class ("response") or the posterior probabilities for each class
("prob").
Arguments
- object
A fitted
ULDAmodel object.- newdata
A data frame containing the new predictor variables for which predictions are to be made.
- type
A character string specifying the type of prediction to return.
"response"returns the predicted class labels, while"prob"returns the posterior probabilities for each class. Default is"response".- ...
Additional arguments.
