beta score calculation added for semi-markov model