evalstep: Sample from a markov chain multi state model with exactly observed transition times
Description
Given a markov chain multi state model with exactly observed transition times,
sample from this chain at the observation times, giving interval censored observations (panel data).
A numeric vector or data.frame (if to.data.frame = TRUE)
containing either the observed states or the named columns newtime and
res, representing the observation times and observed states.
Arguments
time
Times at which a transition occurs
stepf
States at which the chain is in at times
newtime
Observation times of the chain, to create observed states
subst
State to return if observation time is before first transition time. Default = -Inf.