Plot(s) of the hazard, cumulative hazards, and/or the survivor function(s) for each stratum.
# S3 method for tpchreg
plot(
x,
fn = c("haz", "cum", "sur"),
log = "",
main = NULL,
xlim = NULL,
ylim = NULL,
xlab = "Duration",
ylab = "",
col,
lty,
printLegend = TRUE,
...
)
No return value.
A tpchreg
object
Which functions should be plotted? Default is the hazard function.
character, "" (default), "y", or "xy".
Header for the plot
x limits
y limits
x label
y label
Color(s) for the curves. Defaults to black.
Line type for the curve(s). Defaults to 1:(No. of strata).
Logical, or character ("topleft", "bottomleft",
"topright" or "bottomright"); if TRUE
or character, a legend is added
to the plot if the number of strata is two or more.
Extra parameters passed to 'plot' and 'lines'.
Göran Broström
tpchreg