Is this the way to go about it? If yes, how does one implement 2) in the list?1) Set all 'smoothed' regime probabilities under 0.5 equal to 0 and all probabilities of 0.5 or above equal to 1
2) Count the number of times a 1 (or, more often, a group of 1s) is preceded and followed by 0
3) Name this number "x"
4) Count the total number of 1s
5) Name this number "y"
5) Compute average duration as y/x
Thank you.