PredictSosDisc-class {rrcovHD} | R Documentation |
Class "PredictSosDisc"
- prediction of "SosDisc"
objects
Description
The prediction of a "SosDisc" object
Objects from the Class
Objects can be created by calls of the form new("PredictSosDisc", ...)
but most often by invoking predict()
on a "SosDisc"
object.
They contain values meant for printing by show()
Slots
classification
:Object of class
"factor"
representing the predicted classificationmahadist2
:A
"matrix"
containing the squared robust Mahalanobis distances to each group center in the subspace (see Details).w
:A
"vector"
containing the weights derived from robust Mahalanobis distances to the closest group center (see Details).
Details
For the prediction of the class membership a two step approach is taken.
First, the newdata
are scaled and centered (by obj@scale and obj@center)
and multiplied by obj@beta
for dimension reduction. Then the
classification of the transformed data is obtained by prediction with
the Linda
object obj@fit. The Mahalanobis distances to the closest
group center in this subspace is used to derive case weights w
.
Observations where the squared robust mahalanobis distance is larger
than the 0.975 quantile of the chi-square distribution with Q degrees
of freedom receive weight zero, all others weight one.
Methods
- show
signature(object = "PredictSosDisc")
: Prints the results.
Author(s)
Irene Ortner irene.ortner@applied-statistics.at and Valentin Todorov valentin.todorov@chello.at
References
Clemmensen L, Hastie T, Witten D & Ersboll B (2012), Sparse discriminant analysis. Technometrics, 53(4), 406–413.
Ortner I, Filzmoser P & Croux C (2020), Robust and sparse multigroup classification by the optimal scoring approach. Data Mining and Knowledge Discovery 34, 723–741. doi:10.1007/s10618-019-00666-8.
See Also
Examples
showClass("PredictSosDisc")