summary.msm, and can provide a
rough indication of the goodness of fit of a multi-state model without
misclassification.prevalence.msm(msm, times, timezero=min(time), initstates)msm. The data for the fitted model must originally
have been provided as a series of states and observation times, not in
'from-stattimezero.Observed = table of observed numbers of individuals in each state at
each time Observed percentages = corresponding percentage of the
individuals at risk at each time
Expected = table of corresponding expected numbers
Expected percentages = corresponding percentage of the
individuals at risk at each time.
The fitted transition probability matrix is used to forecast expected prevalences from the state occupancy at the initial time. To produce the expected number in state $j$ at time $t$ after the start, the number of individuals under observation at time $t$ (including those who have died, but not those lost to follow-up) is multiplied by the probability of transition between the initial state and state $j$ in a time interval $t$.
This approach only makes sense for processes where all individuals start at a common time. For an example of this approach, see Gentleman et al. (1994).
msm, summary.msm, prevalencemisc.msm for the equivalent for models with
misclassification