plotROC2: Draw ROC curves

Description Usage Arguments Examples

View source: R/reclassify.R

Description

Draw ROC curves

Usage

1
plotROC2(fit1, fit2, labels)

Arguments

fit1, fit2

An object of class glm

labels

Labels given to the ROC curves.

Examples

1
2
3
4
5
6
form1=paste0("AMD~",paste0(colnames(ExampleData)[3:10],collapse="+"))
form2=paste0("AMD~",paste0(colnames(ExampleData)[3:16],collapse="+"))
fit1=glm(as.formula(form1),data=ExampleData,family=binomial)
fit2=glm(as.formula(form2),data=ExampleData,family=binomial)
labels <- c("without genetic factors", "with genetic factors")
plotROC2(fit1,fit2,labels=labels)

cardiomoon/webr2 documentation built on April 24, 2020, 9:44 p.m.