I've created a state sequence using the code:
comp.seq <- seqdef(comp,NULL,states=comp.scodes,labels=comp.labels, alphabet=comp.alphabet,right="Z",left="Z")
then i created a event sequence from that using:
comp.seqe<-seqecreate(comp.seq,tevent="state", use.labels=FALSE)
Then I searched for subsequences using:
subs <- seqefsub(comp.seqe,strsubseq=c("(A)-(C)-(A)"))
Now all I wanna do is create some plots of the resulting sequences. But I found out that there are no plotting functions like seqplot
for event sequences, thus I'd like to convert the resulting event sequences into state sequences. Is it possible ? I've tried seqdef()
with the subs
object but wasn't successful. Is it the appropriate function?
Thanks