sym.P {Biodem} | R Documentation |
Calculate the symmetric column stochastic matrix
Description
Used to turn the asymmetric column stochastic matrix into a symmetric column stochastic matric.
Usage
sym.P(x)
Arguments
x |
|
Details
The function calculates the symmetric matrix from the asymmetric column stochastic matrix, leaving the diagonal unchanged and averaging m[i,j] and m[j,i] as (m[i,j]+m[j,i])/2. The computed average substitutes each pair of values in the new symmetric column stochastic matrix.
Value
Returns a matrix.
Note
...
Author(s)
Federico C. F. Calboli f.calboli@gmail.com
References
Jorde, L. B. 1982. The genetic structure of the Utah mormons: migration analysis. Human Biology 54(3): 583-597.
Examples
data(P)
symmetric<-sym.P(P)
[Package Biodem version 0.5 Index]