
Last chance! 50% off unlimited learning
Sale ends in
Plot Brier score curves
plotBrier(
x,
models,
which = "score",
xlim,
ylim,
xlab,
ylab,
col,
lwd,
lty = 1,
cex = 1,
pch = 1,
type = "l",
axes = 1L,
percent = 1L,
conf.int = 0L,
legend = 1L,
...
)
Object obtained with Score
Choice of models to plot
Character. Either "score"
to show AUC or
"contrasts"
to show differences between AUC.
Limits for x-axis
Limits for y-axis
Label for x-axis
Label for y-axis
line color
line width
line style
point size
point style
line type
Logical. If TRUE
draw axes.
Logical. If TRUE
scale y-axis in percent.
Logical. If TRUE
draw confidence shadows.
Logical. If TRUE
draw legend.
Used for additional control of the subroutines: plot,
axis, lines, legend. See SmartControl
.
# survival
library(survival)
library(prodlim)
set.seed(7)
ds1=sampleData(40,outcome="survival")
ds2=sampleData(40,outcome="survival")
f1 <- coxph(Surv(time,event)~X1+X3+X5+X7+X9,data=ds1,x=TRUE)
f2 <- coxph(Surv(time,event)~X2+X4+X6+X8+X10,data=ds1,x=TRUE)
xscore <- Score(list(f1,f2),formula=Hist(time,event)~1,data=ds2,times=0:12,metrics="brier")
plotBrier(xscore)
Run the code above in your browser using DataLab