survsum(formula, data=sys.parent(), sptms=NULL, xlim,
tlines=T, log=F, xscale=1,yscale=100, mark.time=F, mark=3,
cex=1, xlab="Time", ylab="Survival (%)", lgd="bl",
ttl="K-M Survival",...)
Surv(time, status) ~ predictors
. Same formula expression as used
in survfit
. See help file for survfit. Maximum of 6 groups.c(x1,x2)
. The approximate minimum and maximum values
to be put on x-axis. Default sets x1=0 and x2=maximum time value.yscale=1
would set the y axis from 0 to 1.mark.time
is a numeric vector, then curves
are marked at these specified time points.lines
help file contains examples of the possible marks. The
vector is reused cyclically if it is shorter than the number of curves.mark
. Not a vector; all marks
have the same size."tr"
=top right corner of the plot,
"under"
=under the plot, "n"
omits the legend. The default is:
"bl"
=bottom left corner of the plot."htest"
, containing the following components:
The test for a difference between survival curves uses the chisquare
statistic from the survdiff
function with rho=0
. This is the
log-rank test.
Surv
, survdiff
, survexp
, survfit