actcal.tse(TraMineR)
actcal.tse()所属R语言包:TraMineR
Example data set: Activity calendar from the Swiss Household Panel (time stamped event format)
示例数据集:来自瑞士的住户小组的活动日历(时间标记的事件格式)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This data set contains events defined from the state sequences in the actcal data set. It was created with the code shown in the examples section. It is provided to symplify example of event sequence mining.
该数据集包含的状态序列中的actcal的数据集定义的事件。它创建的代码显示在示例一节。设置以symplify示例的事件序列挖掘。
用法----------Usage----------
data(actcal.tse)
格式----------Format----------
Time stamped events derived from state sequences in the actcal data set.
时间标记的事件来自状态序列中的actcal的数据集。
源----------Source----------
Swiss Household Panel
瑞士住户小组
参见----------See Also----------
seqformat, actcal
seqformat, actcal
实例----------Examples----------
data(actcal)
actcal.seq <- seqdef(actcal[,13:24])
## Defining the transition matrix[#定义的转换矩阵]
transition <- seqetm(actcal.seq, method="transition")
transition[1,1:4] <- c("FullTime" , "Decrease,PartTime",
"Decrease,LowPartTime", "Stop")
transition[2,1:4] <- c("Increase,FullTime", "PartTime" ,
"Decrease,LowPartTime", "Stop")
transition[3,1:4] <- c("Increase,FullTime", "Increase,PartTime",
"LowPartTime" , "Stop")
transition[4,1:4] <- c("Start,FullTime" , "Start,PartTime" ,
"Start,LowPartTime" , "NoActivity")
transition
## Converting STS data to TSE[#转换STS数据TSE]
actcal.tse <- seqformat(actcal,var=13:24, from='STS',to='TSE',
tevent=transition)
## Defining the event sequence object[#定义的事件序列对象]
actcal.seqe <- seqecreate(id=actcal.tse$id,
time=actcal.tse$time, event=actcal.tse$event)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|