Usage
## S3 method for class 'msm':
plot(x, from, to, range, covariates, legend.pos, xlab="Time",
ylab="Fitted survival probability", lwd=1, ...)
Arguments
x
Output from msm
, representing a fitted
multi-state model object. from
States from which to consider survival. Defaults to
the complete set of transient states.
to
Absorbing state to consider. Defaults to the
highest-labelled absorbing state.
range
Vector of two elements, giving the range of times to plot
for.
covariates
Covariate values for which to evaluate the expected
probabilities. This can either be:
the string "mean"
, denoting the means of the covariates in
the data (this is the default),
the number 0
, indicating that all the cova
legend.pos
Vector of the $x$ and $y$ position,
respectively, of the legend.
...
Other arguments to be passed to the generic
plot
and lines
functions.