Learn R Programming

Biodem (version 0.5)

mal.cond: Calculates a Conditional Kinship matrix

Description

The function ``mal.cond'' calculates a R conditional kinship matrix starting from a kinship matrix obtained by the applicatio of the Malecot migration model on a colum stochastic migration matrix.

Usage

mal.cond(PHI, N)

Arguments

PHI

PHI is a square and symmetrical kinship matrix, possibly the output of the function Phi

N

N is the effectiove population vector

Value

Returns a square symmetrical matrix.

Details

Much more useful than the Phi matrix, the conditional kinship R matrix is the basis for further analysis by means of Mantel tests, Procrustes rotations and cluster analysis.

References

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

See Also

mal.phi for the calculation of "absolute" kinship values

Examples

Run this code
# NOT RUN {
# using Swedlund data again...
data(S); data(P); data(N)
x<-mal.eq(S,P,N)
phi<-mal.phi(S,P,N,x)
cond.mat<-mal.cond(phi,N)
cond.mat
# }

Run the code above in your browser using DataLab