hasCA: Pairwise common ancestors

View source: R/pedParts.R

hasCAR Documentation

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


x = fullSibMating(3)
A = hasCA(x)
stopifnot(A[1,1], !A[1,2], all(A[3:8, 3:8]))


paramlink documentation built on April 15, 2022, 9:06 a.m.