Description Usage Arguments Value Examples
View source: R/ggplot_dca.lrm.R
Plot Decision Curve
1 2 |
data |
results of dca() function |
color |
logical, whether models will be classified by color |
linetype |
logical, whether models will be classified by line type |
lwd |
line width |
a ggplot2 picture
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | library(rmda)
library(ggDCA)
library(rms)
data(dcaData)
base.model <- lrm(Cancer~Age + Female + Smokes,data = dcaData)
d <-dca(base.model)
ggplot(d)
full.model <- lrm(Cancer~Age + Female + Smokes + Marker1 + Marker2,
data = dcaData)
d <- dca(base.model,full.model)
ggplot(d)
ggplot(d,color=FALSE)
ggplot(d,linetype = FALSE)
rfp=rFP.p100(x=d)
ggplot(rfp)
AUDC(d)
range(d)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.