Calculate the symmetric column stochastic matrix

Share:

Description

Used to turn the asymmetric column stochastic matrix into a symmetric column stochastic matric.

Usage

1
sym.P(x)

Arguments

x

x is a column stochastic matrix

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 federico.calboli@helsinki.fi

References

Jorde, L. B. 1982. The genetic structure of the Utah mormons: migration analysis. Human Biology 54(3): 583-597.

Examples

1
2
data(P)
symmetric<-sym.P(P)