seqTrans {seqimpute}R Documentation

Computing and spotting transitions among a dataset

Description

The purpose of seqTrans.R is to compute and spot transitions in a dataset.

Usage

seqTrans(OD, k, trans)

Arguments

OD

matrix object containing sequences of a variable with missing data (coded as NA).

k

numeric object corresponding to the number of categories of the variable numbered from 1 to k.

trans

character vector gathering the desired transitions. For example: trans <- c("1->3","1->4","2->1","4->1","4->3")

Value

It returns a message containing the transOverview data.frame object that gathers the occurences of each type of impossible transitions.

rowMat matrix object containing the row coordinates of the impossible transitions (stored in seqTransList[1]).

colMat matrix object containing the column coordinates of the impossible transitions (stored in seqTransList[2]).

Author(s)

Andre Berchtold <andre.berchtold@unil.ch>, Kevin Emery

Examples

data(OD)

seqTransList <- seqTrans(OD=OD, k=2, trans=c("yes->no"))


[Package seqimpute version 1.2.1 Index]