Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.predict.crr

Plot estimated subdistribution functions


Description

plot method for predict.crr

Usage

## S3 method for class 'predict.crr'
plot(x, lty=1:(ncol(x)-1), color=1,  
ylim=c(0, max(x[, -1])), xmin=0, xmax=max(x[, 1]), ...)

Arguments

x

Output from predict.crr

lty

vector of line types. If length is < \# curves, then lty[1] is used for all.

color

vector of line colors. If length is < \# curves, then color[1] is used for all.

ylim

range of y-axis (vector of length two)

xmin

lower limit of x-axis (often 0, the default)

xmax

upper limit of x-axis

...

Other arguments to plot

Side Effects

plots the subdistribution functions estimated by predict.crr, by default using a different line type for each curve

See Also


cmprsk

Subdistribution Analysis of Competing Risks

v2.2-10
GPL (>= 2)
Authors
Bob Gray <gray@jimmy.harvard.edu>
Initial release
2020-06-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.