seqmeant function

Mean durations in each state