powered by
The curve plot the efficacy of a predictive model for different missclassfication event rates
Efficacy_curve(Prob,yt)
The returned fit object of Efficacy_curve contains the plot of the Efficacy curve.
Plot of the Efficacy of the biomarker Prob at different rates of missclasified events
A vector with the event probability values provided by the biomarker
A vector with the actual event values
Maria Escorihuela, Luis Mariano Esteban, Gerardo Sanz, Angel Borque
Prob must be a numeric vector with values between 0 and 1, yt a numeric vector with dichotomic values 0/1 and z a numeric value between 0 and 100
###We generate a marker to serve as an example and plot the curve Prob<-c(rnorm(1000,0.4,0.1),rnorm(1000,0.5,0.05)) yt<-rep(c(0,1),c(1000,1000)) Efficacy_curve(Prob=Prob,yt=yt)
Run the code above in your browser using DataLab