symet: Symmetrization and diagonal loading of a transition matrix

Description Usage Arguments Value Author(s) References See Also Examples

Description

Adds the matrix to its transpose (X + t(X)) and loads its diagonal by the sum of each row.

Usage

1
symet(x, sym = TRUE, charge = TRUE, ident = FALSE)

Arguments

x

data.frame: The matrix to process as a data.frame

sym

logical: symmetrisation.

charge

logical: diagonal loading.

ident

logical: first column consists in identifiers.

Value

a data.frame: the resulting matrix

Author(s)

Jean-Sebastien Pierre
Jean-sebastien.pierre@univ-rennes1.fr

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.
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,matrcom

Examples

1
2
3
	data(wiepkema)
	swiepkema<-symet(wiepkema,ident=TRUE)
	print(swiepkema)

sequence documentation built on March 26, 2020, 7:30 p.m.