Learn R Programming

Biodem (version 0.5)

sym.P: 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

x is a column stochastic matrix

Value

Returns a 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.

References

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

Examples

Run this code
# NOT RUN {
data(P)
symmetric<-sym.P(P)
# }

Run the code above in your browser using DataLab