GaussianExample: Simulated high-dimensional linear regression data with...

GaussianExampleR Documentation

Simulated high-dimensional linear regression data with outliers

Description

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

Usage

data("GaussianExample")

Format

A list with components

x

training predictors, a 100 \times 200 matrix.

y

training response, a numeric vector of length 100.

outliers

indices of the contaminated training observations (1 to 10).

xtest, ytest

clean test data with 200 observations.

beta

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

Details

The predictors form three independent blocks: two informative blocks of 10 predictors each with \mathrm{cor}(x_j, x_k) = 0.9^{|j-k|}, and 180 uninformative predictors with 0.2^{|j-k|}. The response is y = 1 + x^\top\beta + \varepsilon with \varepsilon \sim N(0,1), \beta_j = 1 for the 20 informative predictors and 0 otherwise. The first 10 observations are contaminated: their informative predictors are drawn from N(20, 1) and their errors from N(20\,\hat\sigma_y, 1), where \hat\sigma_y is the standard deviation of the clean response, so they are both leverage points and vertical outliers. 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("GaussianExample")
dim(GaussianExample$x)
GaussianExample$outliers

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