powered by
(x,y)
Generates data from the models described in Cannings and Samworth (2017)
RPModel(Model.No, n, p, Pi = 1/2)
Model Number
Sample size
Data dimension
Class one prior probability
An n by p data matrix -- n observations of the p-dimensional features
n
p
A vector of length n containing the classes (either 1 or 2)
Cannings, T. I. and Samworth, R. J. (2017) Random-projection ensemble classification, J. Roy. Statist. Soc., Ser. B. (with discussion), 79, 959--1035
# NOT RUN { Data <- RPModel(Model.No = 1, 100, 100, Pi = 1/2) table(Data$y) colMeans(Data$x[Data$y==1,]) colMeans(Data$x[Data$y==2,]) # }
Run the code above in your browser using DataLab