Description Usage Arguments Examples

Plot of time-dependent AUC curves

1 2 3 |

`x` |
Object obtained with |

`models` |
Choice of models to plot |

`which` |
Character. Either |

`xlim` |
Limits for x-axis |

`ylim` |
Limits for y-axis |

`xlab` |
Label for x-axis |

`ylab` |
Label for y-axis |

`col` |
line color |

`lwd` |
line width |

`lty` |
line style |

`cex` |
point size |

`pch` |
point style |

`type` |
line type |

`axes` |
Logical. If |

`percent` |
Logical. If |

`conf.int` |
Logical. If |

`legend` |
Logical. If |

`...` |
Used for additional control of the subroutines: plot, |

1 2 3 4 5 6 7 8 9 10 11 | ```
library(survival)
d=sampleData(100,outcome="survival")
nd=sampleData(100,outcome="survival")
f1=coxph(Surv(time,event)~X1+X6+X8,data=d,x=TRUE,y=TRUE)
f2=coxph(Surv(time,event)~X2+X5+X9,data=d,x=TRUE,y=TRUE)
xx=Score(list("X1+X6+X8"=f1,"X2+X5+X9"=f2), formula=Surv(time,event)~1,
data=nd, metrics="auc", null.model=FALSE, times=seq(3:10))
aucgraph <- plotAUC(xx)
plotAUC(xx,conf.int=TRUE)
## difference between
plotAUC(xx,which="contrasts",conf.int=TRUE)
``` |

riskRegression documentation built on Oct. 5, 2018, 1:03 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.