powered by
Show predicted risk obtained by a risk prediction model as a function of time.
# S3 method for riskRegression plot(x, cause, newdata, xlab, ylab, xlim, ylim, lwd, col, lty, axes=TRUE, percent=TRUE, legend=TRUE, add=FALSE, ...)
Fitted object obtained with one of ARR, LRR, riskRegression.
ARR
LRR
riskRegression
For CauseSpecificCox models the cause of interest.
A data frame containing predictor variable combinations for which to compute predicted risk.
See plot
plot
A vector of line thicknesses for the regression coefficients.
A vector of colors for the regression coefficients.
A vector of line types for the regression coefficients.
Logical. If FALSE then do not draw axes.
FALSE
If true the y-axis is labeled in percent.
If true draw a legend.
Logical. If TRUE then add lines to an existing plot.
TRUE
Used for transclusion of smart arguments for plot, lines, axis and background. See function SmartControl from prodlim.
lines
axis
background
SmartControl
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab