S3 methods for lines
# S3 method for stpm2
lines(x, newdata = NULL, type = "surv", col = 1, ci.col= "grey",
lty = par("lty"), ci = FALSE, rug = FALSE, var = NULL,
exposed = NULL, times = NULL,
type.relsurv = c("excess", "total", "other"),
ratetable = survival::survexp.us, rmap, scale = 365.24, ...)
# S3 method for pstpm2
lines(x, newdata = NULL, type = "surv", col = 1,
ci.col= "grey",
lty = par("lty"), ci = FALSE, rug = FALSE, var = NULL,
exposed = NULL, times = NULL, ...)
an stpm2
object
required list of new data. This defines the unexposed newdata (excluding the event times).
specify the type of prediction
line colour
line type
confidence interval colour
whether to plot the confidence interval band (default=TRUE)
whether to add a rug plot of the event times to the current plot (default=TRUE)
specify the variable name or names for the exposed/unexposed (names are given as characters)
function that takes newdata and returns the exposed
dataset. By default, this increments var
(except for cure
models, where it defaults to the last event time).
specifies the times. By default, this uses a span of the observed times.
type of predictions for relative survival models: either "excess", "total" or "other"
scale to go from the days in the ratetable
object
to the analysis time used in the analysis
an optional list that maps data set names to the ratetable
names. See survexp
a table of event rates used in relative survival when
type.relsurv
is "total" or "other"
additional arguments (add to the plot
command)