seqtrate {TraMineR}R Documentation

Transition rates between states.

Description

Returns a matrix with transition rates between states, computed from a set of sequences.

Usage

 seqtrate(seqdata, statl=NULL)

Arguments

seqdata a sequence object (see seqdef function).
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).

Details

Transition rates are the probabilities of transition from one state to another in the sequence data. Substitution costs based on transition rates can be used when computing distances between sequences with the optimal matching method.

See Also

seqdist seqsubm alphabet.

Examples

  ## Loading the 'actcal' example data set
  data(actcal)

  ## Defining a sequence object with data in columns 13 to 24
  ## (activity status from january to december 2000)
  actcal.seq <- seqdef(actcal,13:24,informat='STS')

  ## Computing transition rates
  seqtrate(actcal.seq)

  ## Computing transition rates between states "A" and "B" only
  seqtrate(actcal.seq,c("A","B"))       

[Package TraMineR version 1.0 Index]