BinomialExample: Simulated high-dimensional logistic regression data with...

BinomialExampleR Documentation

Simulated high-dimensional logistic regression data with outliers

Description

Simulated data for family = "binomial" with n = 100 observations and p = 200 predictors (p > n), following the simulation design of Kurnaz, Hoffmann and Filzmoser (2018).

Usage

data("BinomialExample")

Format

A list with components

x

training predictors, a 100 \times 200 matrix.

y

training response, a 0/1 vector of length 100.

outliers

indices of the contaminated training observations (1, 3, 7, 13).

xtest, ytest

clean test data with 200 observations.

beta

the true slope vector (the true intercept is 1).

Details

The first 20 predictors are informative (\beta_j = 1) and correlated with \mathrm{cor}(x_j, x_k) = 0.9^{|j-k|}; the other 180 are uninformative and correlated with 0.5^{|j-k|}. The response is y = 1 if 1 + x^\top\beta + \varepsilon > 0 with \varepsilon \sim N(0,1), and y = 0 otherwise. The first 10% of the observations of class 0 (4 observations) are contaminated: their informative predictors are drawn from N(20, 1) while their label stays 0, so they are bad leverage points. Values are rounded to three decimals. The generating code is in the data-raw directory of the package repository on GitHub.

References

Kurnaz, F.S., Hoffmann, I. and Filzmoser, P. (2018). Robust and sparse estimation methods for high-dimensional linear and logistic regression. Chemometrics and Intelligent Laboratory Systems, 172, 211–222. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.chemolab.2017.11.017")}

Examples

data("BinomialExample")
table(BinomialExample$y)
BinomialExample$outliers

enetLTS documentation built on Nov. 22, 2026, 1:08 a.m.