seqdef function

Create a state sequence object