Simulation and estimation of multi-state discrete-time semi-Markov and Markov models
