plot.riskRegression: Plotting predicted risk In riskRegression: Risk Regression Models and Prediction Scores for Survival Analysis with Competing Risks

Description

Show predicted risk obtained by a risk prediction model as a function of time.

Usage

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16``` ```## S3 method for class 'riskRegression' plot(x, cause, newdata, xlab, ylab, xlim, ylim, lwd, col, lty, axes=TRUE, percent=TRUE, legend=TRUE, add=FALSE, ...) ```

Arguments

 `x` Fitted object obtained with one of `ARR`, `LRR`, `riskRegression`. `cause` For CauseSpecificCox models the cause of interest. `newdata` A data frame containing predictor variable combinations for which to compute predicted risk. `xlab` See `plot` `ylab` See `plot` `xlim` See `plot` `ylim` See `plot` `lwd` A vector of line thicknesses for the regression coefficients. `col` A vector of colors for the regression coefficients. `lty` A vector of line types for the regression coefficients. `axes` Logical. If `FALSE` then do not draw axes. `percent` If true the y-axis is labeled in percent. `legend` If true draw a legend. `add` Logical. If `TRUE` then add lines to an existing plot. `...` Used for transclusion of smart arguments for `plot`, `lines`, `axis` and `background`. See function `SmartControl` from prodlim.

Author(s)

Thomas Alexander Gerds <tag@biostat.ku.dk>

Examples

 ```1 2 3 4 5``` ```library(survival) library(prodlim) data(Melanoma) fit.arr <- ARR(Hist(time,status)~invasion+age+strata(sex),data=Melanoma,cause=1) plot(fit.arr,xlim=c(500,3000)) ```

riskRegression documentation built on Jan. 13, 2021, 11:12 a.m.