seqsubsn(TraMineR)
seqsubsn()所属R语言包:TraMineR
Number of distinct subsequences in a sequence.
在一个序列中的不同的子序列数目。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the number of distinct subsequences in a sequence using Elzinga's algorithm.
计算使用Elzinga算法在一个序列中的不同的子序列的数目。
用法----------Usage----------
seqsubsn(seqdata, DSS=TRUE)
参数----------Arguments----------
参数:seqdata
a state sequence object as defined by the seqdef function.
一个状态序列对象定义的seqdef功能。
参数:DSS
if TRUE, the Distinct State Successive states (DSS, see seqdss) are first extracted, e.g., the DSS contained in 'D-D-D-D-A-A-A-A-A-A-A-D' is 'D-A-D', and the number of distinct subsequences in the DSS is computed. If FALSE, the number of distinct subsequences is computed from sequences as they appear in the input sequence object. Hence the number of distinct subsequences is in most cases much higher with the DSS=FALSE option.
如果TRUE,不同的状态连续状态(DSS,请参阅seqdss)第一次提取,例如,在DSS中包含的'D-D-D-D-A-A-A-A-A-A-A-D'是'D-A-D',和一些不同的子序列在DSS计算。如果FALSE,不同的子序列的数量计算从输入序列中的对象,因为它们出现的顺序。因此,不同的子序列的数目是在大多数情况下,与DSS=FALSE选项高得多。
Details
详细信息----------Details----------
The function searches for missing states in the sequences and if found, adds the missing state to the alphabet for the extraction of the distinct subsequences. A missing state in a sequence is considered as the occurrence of an additional symbol of the alphabet, and two or more consecutive missing states are considered as two or more occurrences of the same state. The with.missing=TRUE argument is used for calling the seqdss function when DSS=TRUE.
功能搜索失踪的序列中,如果发现,添加缺失的状态,以提取不同的子序列的字母表。发生的其他符号的字母序列中被认为是一个丢失的状态,和两个或两个以上被视为相同的状态出现两个或两个以上的连续丢失的状态。用于调用with.missing=TRUE功能,当seqdssDSS=TRUE参数。
值----------Value----------
Vector with the number of distinct subsequences for each sequence in the input state sequence object.
输入状态序列对象的数目,每个序列中的不同的子序列为向量的。
参见----------See Also----------
seqdss.
seqdss。
实例----------Examples----------
data(actcal)
actcal.seq <- seqdef(actcal,13:24)
## Number of subsequences with DSS=TRUE[子序列与DSS = TRUE#]
seqsubsn(actcal.seq[1:10,])
## Number of subsequences with DSS=FALSE[#子序列与DSS = FALSE]
seqsubsn(actcal.seq[1:10,],DSS=FALSE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|