Learn R Programming

paramlink (version 1.1-5)

hasCA: Pairwise common ancestors

Description

Computes a matrix A whose entry A[i,j] is TRUE if pedigree members i and j have a common ancestor, and FALSE otherwise.

Usage

hasCA(x)

Arguments

x

a linkdat object.

Examples

Run this code
# NOT RUN {
x = fullSibMating(3)
A = hasCA(x)
stopifnot(A[1,1], !A[1,2], all(A[3:8, 3:8]))

# }

Run the code above in your browser using DataLab