| BinomialExample | R Documentation |
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).
data("BinomialExample")
A list with components
xtraining predictors, a 100 \times 200 matrix.
ytraining response, a 0/1 vector of length 100.
outliersindices of the contaminated training observations (1, 3, 7, 13).
xtest, ytestclean test data with 200 observations.
betathe true slope vector (the true intercept is 1).
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.
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")}
data("BinomialExample")
table(BinomialExample$y)
BinomialExample$outliers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.