CUC_plot {CUtools} | R Documentation |
Plot the clinical utility of a biomarker
Description
The clinical utility plot shows two magnitudes, the number of events missclassfied below a cut off point and the saved treatments. In the X axis we can see the different cut off points and in the Y axis the magnitudes above defined.
Usage
CUC_plot(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 and yt a numeric vector with dichotomic values 0/1
Value
The function returns the clinical utility curve
Author(s)
Maria Escorihuela, Luis Mariano Esteban, Gerardo Sanz, Angel Borque
Examples
###We generate a marker to serve as an example and plot the CUC curve
Prob<-c(rnorm(1000,0.4,0.1),rnorm(1000,0.6,0.05))
yt<-rep(c(0,1),c(1000,1000))
CUC_plot(Prob,yt)
[Package CUtools version 0.1.0 Index]