- x
A fitted msm model object.
- from
State from which to compute the estimated survival.
Defaults to state 1.
- to
The absorbing state to which compute the estimated survival.
Defaults to the highest state found by msm::absorbing.msm().
- range
A numeric vector of two elements giving the time range of the
plot.
- covariates
Covariate values for which to evaluate the expected
probabilities. These can be "mean", denoting the means of the covariates in
the data (default); the number 0, indicating that all covariates should be
set to zero; or a list of values, with optional names. For example:
list(75, 1)
The unnamed list must follow the order of the covariates in the original
model formula. A named list is also accepted:
list(age = 75, gender = "M").
- exacttimes
If TRUE (default), transition times are known and exact.
This should match the value used when fitting the model with msm.
- times
An optional numeric vector giving the times at which to compute
the fitted survival.
- grid
An integer specifying the grid points at which to compute the
fitted survival curve (see Details). If times is passed, grid is ignored.
Defaults to 100 points.
- km
If TRUE, the Kaplan-Meier curve is plotted. Default is FALSE.
- ci
A character vector with the type of confidence intervals to compute for the fitted
survival curve. Specify either "none" (default), for no confidence intervals,
"normal" or "bootstrap", for confidence intervals computed with the respective
method in msm::pmatrix.msm(). This is computationally intensive,
since intervals must be computed at a series of times.
- interp
If "start" (default), then the entry time into the
absorbing state is assumed to be the time it is first observed in the data.
If "midpoint", then the entry time into the absorbing state is assumed
to be halfway between the time it is first observed and the previous
observation time. This is generally more reasonable for "progressive"
models with observations at arbitrary times.
- B
Number of bootstrap or normal replicates for the confidence interval.
The default is 100 rather than the usual 1000, since these plots are for
rough diagnostic purposes.
- ci_km
A character vector with the type of confidence intervals to compute for the
Kaplan-Meier curve. Specify either "none", "plain", "log", "log-log",
"logit", or "arcsin", as coded in survival::survfit().
- print_plot
If TRUE (default), the plot is printed before being
returned. If FALSE, the plot is returned without printing.
- verbosity
Controls informational output. Use "quiet" to suppress
status messages and "summary" or "progress" for high-level messages.
- ...
Reserved for the migration trampoline. Passing the legacy
out argument here raises an informative error pointing to the new
$fitted / $km access pattern. The trampoline will be removed in
v2.3.0.