找回密码
 注册
查看: 670|回复: 0

R语言 TraMineR包 seqeapplysub()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 11:37:24 | 显示全部楼层 |阅读模式
seqeapplysub(TraMineR)
seqeapplysub()所属R语言包:TraMineR

                                        Checking for the presence of given event subsequences
                                         检查是否存在给定的事件子序列

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Checks occurrences of the subsequences subseq among the event sequences and returns the result according to the selected method.
检查出现的子序列中的subseq之间的事件序列,并返回所述结果所选method。


用法----------Usage----------


seqeapplysub(subseq, method = NULL, constraint = NULL,
            rules=FALSE)



参数----------Arguments----------

参数:subseq
list of subsequences (an event subsequence object) such as created by seqefsub
的子序列(事件序列对象),如创建的seqefsub


参数:method
type of result, should be one of "count", "presence" or "age"
类型的结果,应该是一个"count","presence"或"age"


参数:constraint
Time constraints overriding those used to compute subseq. See seqeconstraint  
由于时间限制,覆盖那些用来计算subseq。见seqeconstraint


参数:rules
If set to TRUE, instead of checking occurrences of the subsequences among the event sequences, check the occurrence of the subsequences inside the subsequences (internally used by seqerules)
如果设置为TRUE,而不是发生的事件序列的子序列间检查,检查的子序列(seqerules)内部使用的子序列内发生


Details

详细信息----------Details----------

There are three methods implemented: "count" counts the number of occurrence of each given subsequence in each event sequence; "presence" returns 1 if the subsequence is present, 0 otherwise; "age" returns the age of appearance of each subsequence in each event sequence. In case of multiple possibilities, the age of the first occurrence is returned. When the subsequence is not in the sequence, -1 is returned.
实现的方法有三种:"count"计算的每一个事件序列中发生的每一个给定的序列; "presence"返回1,如果序列存在,否则为0;"age"返回年龄每一个事件序列中出现的每个子序列。在多种可能性的情况下,将返回第一次出现的年龄。当子序列在序列中是不是,则返回-1。


值----------Value----------

The return value is a matrix where each row corresponds to a sequence (row names are set accordingly) and each column corresponds to a subsequence (col names are set accordingly). The cells of the matrix contain the requested values (count, presence-absence indicator or age).
返回值是一个矩阵,其中每一行对应于一个序列(行名称进行相应的设置),每一列对应一个子序列(COL的名称进行相应的设置)。单元的矩阵中包含的请求的值(计数,存在有无指示符或年龄)。


参考文献----------References----------



参见----------See Also----------

seqecreate for more information on event sequence object and <CITE>Gabadinho et al. (2009)</CITE> on how to use the event sequence analysis module.
seqecreate了事件序列的对象和<CITE> Gabadinho等的更多信息。 (2009年)</ CITE>如何使用事件序列分析模块。


实例----------Examples----------


## Loading data[#数据载入中]
data(actcal.tse)

## Creating the event sequence object[#创建事件序列对象]
actcal.seqe <- seqecreate(actcal.tse)

## Printing sequences[#打印序列]
actcal.seqe[1:10]

## Looking for frequent subsequences[#寻找频繁子序列]
fsubseq <- seqefsub(actcal.seqe,pMinSupport=0.01)

## Counting the number of occurrences of each subsequence[#计数出现的次数,每个子序列]
msubcount <- seqeapplysub(fsubseq,method="count")
## First lines...[#第一线......]
msubcount[1:10,1:10]
## Presence-absence of each subsequence[#在场的情况下的每个子序列]
msubpres <- seqeapplysub(fsubseq,method="presence")
## First lines...[#第一线......]
msubpres[1:10,1:10]

## Age at first appearance of each subsequence[#在第一个出场的每个子序列的年龄]
msubage <- seqeapplysub(fsubseq,method="age")

## First lines...[#第一线......]
msubage[1:10,1:10]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-30 06:40 , Processed in 0.025256 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表