Learn R Programming

msm (version 0.1)

plot.msm: Plots of multi-state models

Description

This produces a plot of the expected probability of survival against time, from each transient state. Survival is defined as not entering the final absorbing state.

Usage

## S3 method for class 'msm':
plot(x, from, to, legend.pos, ...)

Arguments

x
Output from msm, representing a fitted multi-state model object
from
States from which to consider survival from. Defaults to the complete set of transient states.
to
Absorbing state to consider. Defaults to the highest-labelled absorbing state.
legend.pos
Vector of the $x$ and $y$ position, respectively, of the legend.
...
Other arguments to the generic plot function

See Also

msm