Description Usage Arguments Examples
Draw ROC curves
1 |
fit1, fit2 |
An object of class glm |
labels |
Labels given to the ROC curves. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.