seqtrate(TraMineR)
seqtrate()所属R语言包:TraMineR
Compute transition rates between states
计算国家之间的升学率
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns a matrix with transition rates between states, computed from a set of sequences.
返回矩阵转型国家之间的利率,计算出一组序列。
用法----------Usage----------
seqtrate(seqdata, statl=NULL, time.varying=FALSE, weighted=TRUE,
lag=1, with.missing=FALSE)
参数----------Arguments----------
参数:seqdata
a sequence object as defined by the seqdef function.
一个序列对象的定义的seqdef功能。
参数:statl
a list of states or events for which the transition rates will be computed. If omitted (default), transition rates are computed between the distinct states in seqdata (obtained with the alphabet function).
的过渡税率计算的状态或事件的列表。如果省略该参数(默认值),计算转换率之间的不同的状态中seqdata(alphabet功能)。
参数:time.varying
Logical. If TRUE, return an array containing a distinct matrix for each time unit. The time is the third dimension (subscript).
逻辑。如果TRUE,返回array包含一个独特的矩阵,每个时间单位。时间是第三个维度(下标)。
参数:weighted
Logical. If TRUE, compute transition rates using weights specified in seqdata.
逻辑。如果TRUE,使用指定的seqdata的权重计算过渡。
参数:lag
Integer. Time between the two states considered to compute transition rates (one by default).
整数。计算的过渡率(默认情况下)认为这两个国家之间的时间。
参数:with.missing
Logical. If FALSE (default value), returned transition rates ignore missing values.
逻辑。如果FALSE(默认值),返回的升学率,忽略缺少的值。
Details
详细信息----------Details----------
Transition rates are the probabilities of transition from one state to another observed in the sequence data. Substitution costs based on transition rates can be used when computing distances between sequences with the optimal matching method (see seqdist).
过渡率是观察序列中的数据从一个状态到另一个的过渡概率。换人成本计算方法(见seqdist)与最佳匹配的序列之间的距离时,可以使用基于转移速率。
值----------Value----------
a matrix of dimension ns*ns, where ns is the number of states in the alphabet of the sequence object.
维的矩阵ns*ns,其中ns是在字母表中的顺序对象的数量。
参考文献----------References----------
参见----------See Also----------
seqdist seqsubm alphabet.
seqdistseqsubmalphabet。
实例----------Examples----------
## Loading the 'actcal' example data set[#载入actcal的“示例数据集]
data(actcal)
## Defining a sequence object with data in columns 13 to 24[#定义一个序列对象中的数据列13至24]
## (activity status from january to december 2000)[#(活动地位从1月至2000年12)]
actcal.seq <- seqdef(actcal,13:24,informat='STS')
## Computing transition rates[#计算过渡]
seqtrate(actcal.seq)
## Computing transition rates between states "A" and "B" only[#计算过渡状态之间的“A”和“B”]
seqtrate(actcal.seq, c("A","B"))
## ====================[#====================]
## Example with weights[#示例重量]
## ====================[#====================]
data(ex1)
ex1.seq <- seqdef(ex1,1:13, weights=ex1$weights)
seqtrate(ex1.seq, weighted=FALSE)
seqtrate(ex1.seq, weighted=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|