Compute and plot KaplanMeier estimates of the probability that each successive state has not occurred yet.
1 2 3 
formula 
A formula giving the vectors containing the observed states and the corresponding observation times. For example,
Observed states should be in the set 
subject 
Vector of subject identification numbers for the data
specified by 
data 
An optional data frame in which the variables represented
by 
legend.pos 
Vector of the x and y position, respectively, of the legend. 
xlab 
x axis label. 
ylab 
y axis label. 
lwd 
Line width. See 
xlim 
x axis limits, e.g. c(0,10) for an axis ranging from 0 to 10. Default is the range of observation times. 
mark.time 
Mark the empirical survival curve at each censoring
point, see 
... 
Other arguments to be passed to the

If the data represent observations of the process at arbitrary times, then
the first occurrence of the state in the data will usually be greater
than the actual first transition time to that state. Therefore the
probabilities plotted by plotprog.msm
will be
overestimates.
survfit
, plot.survfit
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.