powered by
The purpose of seqTrans is to spot impossible transitions in longitudinal categorical data.
seqTrans
seqTrans(data, var = NULL, trans)
It returns a matrix where each row is the position of an impossible transition.
a data frame containing sequences of a multinomial variable with missing data (coded as NA)
NA
the list of columns containing the trajectories. Default is NULL, i.e. all the columns.
character vector gathering the impossible transitions. For example: trans <- c("1->3","1->4","2->1","4->1","4->3")
character
Andre Berchtold and Kevin Emery
data(gameadd) seqTransList <- seqTrans(data = gameadd, var = 1:4, trans = c("yes->no"))
Run the code above in your browser using DataLab