Efficacy_curve {CUtools} | R Documentation |
Efficacy curve for a predictive model/biomarker
Description
The curve plot the efficacy of a predictive model for different missclassfication event rates
Usage
Efficacy_curve(Prob,yt)
Arguments
Prob |
A vector with the event probability values provided by the biomarker |
yt |
A vector with the actual event values |
Details
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
Value
The returned fit object of Efficacy_curve contains the plot of the Efficacy curve.
EfficacyCurve |
Plot of the Efficacy of the biomarker Prob at different rates of missclasified events |
Author(s)
Maria Escorihuela, Luis Mariano Esteban, Gerardo Sanz, Angel Borque
Examples
###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)
[Package CUtools version 0.1.0 Index]