predictPlot: Draw a Predictiveness Plot

Description Usage Arguments Value Examples

View source: R/reclassify.R

Description

Draw a Predictiveness Plot

Usage

1
predictPlot(fitlist, labels, size, ...)

Arguments

fitlist

A list of objects of class glm

labels

String Optional labels

size

numeric line size

...

Further arguments to be passed to geom_line()

Value

A ggplot

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")
predictPlot(list(fit1,fit2),labels=labels)

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