Plotting predicted risk
Show predicted risk obtained by a risk prediction model as a function of time.
## S3 method for class 'riskRegression' plot(x, cause, newdata, xlab, ylab, xlim, ylim, lwd, col, lty, axes=TRUE, percent=TRUE, legend=TRUE, add=FALSE, ...)
x |
Fitted object obtained with one of |
cause |
For CauseSpecificCox models the cause of interest. |
newdata |
A data frame containing predictor variable combinations for which to compute predicted risk. |
xlab |
See |
ylab |
See |
xlim |
See |
ylim |
See |
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 |
percent |
If true the y-axis is labeled in percent. |
legend |
If true draw a legend. |
add |
Logical. If |
... |
Used for transclusion of smart arguments for |
Thomas Alexander Gerds <tag@biostat.ku.dk>
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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.