###We generate a marker to serve as an example
Prob1<-c(rnorm(10000,0.4,0.1),rnorm(10000,0.5,0.05))
Prob2<-c(rnorm(10000,0.4,0.1),rnorm(10000,0.5,0.05))
yt1<-rep(c(0,1),c(10000,10000))
yt2<-rep(c(0,1),c(10000,10000))
#We choose a rate of 10% for misclassified events.
##For a paired test
Efficacy_test(paired=1,Prob1,Prob2,yt1,yt2,z=10)
##For a unpaired test
Efficacy_test(paired=0,Prob1,Prob2,yt1,yt2,z=10)
Run the code above in your browser using DataLab