TraMineR中查找包含特定子序列的案例技术问询
在TraMineR中查找特定子序列的实现与结果
我最近在做序列分析时,需要在TraMineR工具里筛选出包含特定子序列或子字符串的案例。参考TraMineR用户指南第10.5.1-10.5.2节的方法,我编写了如下代码:
mysubseqstr <- character(2) mysubseqstr[1] <- "(Parent)-(Left)-(Left+Marr)" mysubseqstr[2] <- "(Parent)-(Left+Marr)" mysubseq <- seqefsub(bf.seqestate, strsubseq = mysubseqstr) print(mysubseq)
执行这段代码后,得到的输出结果如下:
Subsequence Support Count 1 (Parent)-(Left+Marr) 0.4870 974 2 (Parent)-(Left)-(Left+Marr) 0.2275 455 Computed on 20...
内容的提问来源于stack exchange,提问作者user3315563
相关产品推荐
相关产品推荐

