Learn R Programming

CUtools (version 0.1.0)

Efficacy_curve: 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)

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

Arguments

Prob

A vector with the event probability values provided by the biomarker

yt

A vector with the actual event values

Author

Maria Escorihuela, Luis Mariano Esteban, Gerardo Sanz, Angel Borque

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

Examples

Run this code
###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