| RPModel | R Documentation |
(x,y) from joint distributionGenerates data from the models described in Cannings and Samworth (2017)
RPModel(Model.No, n, p, Pi = 1/2)
Model.No |
Model Number |
n |
Sample size |
p |
Data dimension |
Pi |
Class one prior probability |
x |
An |
y |
A vector of length |
Models 1 and 2 require p = 100 or 1000.
Timothy I. Cannings and Richard J. Samworth
Cannings, T. I. and Samworth, R. J. (2017) Random-projection ensemble classification, J. Roy. Statist. Soc., Ser. B. (with discussion), 79, 959–1035
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,])