Estimation of transitions probabilities in multistate models