Learn R Programming

msm (version 0.5.2)

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 an absorbing state.

Usage

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

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 the generic plot function

concept

Survival

See Also

msm