dataLS: generate random data for classification as in Long and Servedio (2010)
Description
generate random data for classification as in Long and Servedio (2010)
Usage
dataLS(ntr, ntu = ntr, nte, percon)
Value
a list with elements xtr, xtu, xte, ytr, ytu, yte for predictors of disjoint training, tuning and test data, and response variable -1/1 of training, tuning and test data.
Arguments
ntr
number of training data
ntu
number of tuning data, default is the same as ntr
nte
number of test data
percon
proportion of contamination, must between 0 and 1. If percon > 0, the labels of the corresponding percenrage of response variable in the training and tuning data are flipped.