prevalence.msm(x, times, timezero=NULL, initstates, covariates="mean", misccovariates="mean")
msm
. The data for the fitted model must originally
have been provided as a series of states and observation times, not iqmatrix.msm
. Defaults to the
mean values of the covariates in the data set.Expected
Expected percentages
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$.
For misclassification models, this aims to assess the fit of the model for the observed states to the data, that is the combined Markov progression model for the true states and the misclassification model. Thus, expected prevalences of true states are estimated from the assumed proportion occupying each state at the initial time using the fitted transition probabiliy matrix. The vector of expected prevalences of true states is then multiplied by the fitted misclassification probability matrix to obtain the expected prevalences of observed states.
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