Learn R Programming

sequence (version 2.0)

matrcom: Calculates a common succession matrix

Description

Computes the succession matrix common to a set of sequences.

Usage

matrcom(x, printdata = FALSE, printdico = FALSE, printmat = FALSE, printcom = TRUE)

Arguments

x

seq: list of lists of class character. The sequences to analyse.

printdata

logical: print all sequences.

printdico

logical: print the dictionary.

printmat

logical: print each individual matrix.

printcom

logical: print the common succession matrix.

Value

data.frame: the succession matrix with the label of items as first column.

Details

The resulting matrix (succession: matrix) gives the number of times the element i (row) is followed by the element j (column).

References

Pierre, J. S. and C. Kasper (1990). The Design of Ethological Flow-Charts on Factorial Analysis Representations - an Application to the Study of the Male Mole-Cricket Sexual Courtship. Biology of Behaviour 15(3-4): 125-151.(in french) Van der Heijden, P. G. M. 1986. Transition matrices, model fitting and correspondence analysis. In: Data Analysis and Informatics IV (Ed. by E. Diday), pp. 221-226. Elsevier Science Publishers.

See Also

flux, ca

Examples

Run this code
# NOT RUN {
data(seriseq)
matrcom(seriseq)

# }

Run the code above in your browser using DataLab