plot.prevalence.msm {msm} | R Documentation |
Provides a rough indication of goodness of fit of a multi-state model, by estimating the observed numbers of individuals occupying a state at a series of times, and plotting these against forecasts from the fitted model, for each state. Observed prevalences are indicated as solid lines, expected prevalences as dashed lines.
plot.prevalence.msm(x, mintime, maxtime, interp, ...)
x |
A fitted multi-state model produced by msm . |
mintime |
Minimum time at which to compute the observed and expected prevalences of states. |
maxtime |
Maximum time at which to compute the observed and expected prevalences of states. |
interp |
Interpolation method for observed states, see prevalence.msm |
... |
Further arguments to be passed to the generic plot
function. |
See prevalence.msm
for details of the assumptions
underlying this method.
Gentleman, R.C., Lawless, J.F., Lindsey, J.C. and Yan, P. Multi-state Markov models for analysing incomplete disease history data with illustrations for HIV disease. Statistics in Medicine (1994) 13(3): 805–821.