"PredictSosDisc"
- prediction of "SosDisc"
objectsThe prediction of a "SosDisc" object
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()
classification
:Object of class "factor"
representing the predicted classification
mahadist2
: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).
signature(object = "PredictSosDisc")
: Prints the results.
Irene Ortner irene.ortner@applied-statistics.at and Valentin Todorov valentin.todorov@chello.at
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.
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. tools:::Rd_expr_doi("10.1007/s10618-019-00666-8").
SosDisc-class