SosDisc-class {rrcovHD}R Documentation

Class "SosDisc" - virtual base class for all classic and robust SosDisc classes representing the results of the robust and sparse multigroup classification by the optimal scoring approach

Description

Robust and sparse multigroup classification by the optimal scoring approach. The class SosDisc searves as a base class for deriving all other classes representing the results of the robust and sparse multigroup classification by the optimal scoring approach.

Details

The sparse optimal scoring problem (Clemmensen et al, 2011): for h=1,....,Q

\min_{\beta_h,\theta_h} \frac{1}{n} \|Y \theta_h - X \beta_h \|_2^2 + \lambda \|\beta_h\|_1

subject to

\frac{1}{n} \theta_h^T Y^T Y\theta_h=1, \quad \theta_h^T Y^T Y \theta_l=0 \quad \forall l<h.

where X deontes the robustly centered and scaled input matrix x (or alternativly the predictors from formular) and Y is an dummy matrix coding die classmemberships from grouping.

For each h this problem can be solved interatively for \beta_h and \theta_h. In order to obtain robust estimates, \beta_h is estimated with reweighted sparse least trimmed squares regression (Alfons et al, 2013) and \theta_h with least absolut deviation regression in the first two iterations. To speed up the following repetitions an iterative down-weighting of observations with large residuals is combined with the iterative estimation of the optimal scoring coefficients with their classical estimates.

The classification model is estimated on the low dimensional sparse subspace X[\beta_1,...,\beta_Q] with robust LDA (Linda).

Objects from the Class

A virtual Class: No objects may be created from it.

Slots

call:

The (matched) function call.

prior:

Prior probabilities; same as input parameter.

counts:

Number of observations in each class.

beta:

Object of class "matrix": Q coefficient vectors of the predictor matrix from optimal scoring (see Details); rows corespond to variables listed in varnames.

theta:

Object of class "matrix": Q coefficient vectors of the dummy matrix for class coding from optimal scoring (see Details).

lambda:

Non-negative tuning paramer from L1 norm penaly; same as input parameter

varnames:

Character vector: Names of included predictor variables (variables where at least one beta coefficient is non-zero).

center:

Centering vector of the input predictors (coordinate wise median).

scale:

Scaling vector of the input predictors (mad).

fit:

Object of class "Linda": Linda model (robust LDA model) estimated in the low dimensional subspace X[\beta_1,...,\beta_Q] (see Details)

mahadist2:

These will go later to Linda object: squared robust Mahalanobis distance (calculated with estimates from Linda, with common covariance structure of all groups) of each observation to its group center in the low dimensional subspace X[\beta_1,...,\beta_Q] (see Details).

wlinda:

These will go later to Linda object: 0-1 weights derived from mahadist2; observations where the squred robust Mahalanobis distance is larger than the 0.975 quantile of the chi-square distribution with Q degrees of freedom resive weight zero.

X:

The training data set (same as the input parameter x of the constructor function)

grp:

Grouping variable: a factor specifying the class for each observation (same as the input parameter grouping)

Methods

predict

signature(object = "SosDisc"): calculates prediction using the results in object. An optional data frame or matrix in which to look for variables with which to predict. If omitted, the training data set is used. If the original fit used a formula or a data frame or a matrix with column names, newdata must contain columns with the same names.

show

signature(object = "SosDisc"): prints the results

summary

signature(object = "SosDisc"): prints summary information

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.

Examples

    showClass("SosDisc")

[Package rrcovHD version 0.3-0 Index]