# NOT RUN {
data(hapmap)
#n = 198, p = 75435 for this data
####################################################
# }
# NOT RUN {
#If you just want the estimated number of spikes
train.eval<-hapmap$train.eval
n<-hapmap$nSamp
p<-hapmap$nSNP
select.nspike(train.eval,p,n,n.spikes.max=10,evals.out=FALSE)
#If you want the estimated spikes and non-spikes
out<-select.nspike(train.eval,p,n,n.spikes.max=10,evals.out=TRUE)
# }
Run the code above in your browser using DataLab