rel_queller: This estimates the Queller & Goodnight (1989)

View source: R/rel_queller.R

rel_quellerR Documentation

This estimates the Queller & Goodnight (1989)

Description

This function estimates the allele-wise relatedness statistic from Queller & Goodnight (1989).

This is an asymmetric estimator using the formula:

r_{XY} = \frac{\sum_{i=1}^L(\delta_{ac} + \delta_{ad} + \delta_{bd} + \delta_{bd} -p_a - p_b - p_c - p_d) }{\sum_{i=1}^L (2 + \delta_{ab} + \delta_{cd} - p_a - p_b - p_c - p_d)}

Usage

rel_queller(x)

Arguments

x

A data.frame or vector that has locus objects in it. If you pass it a data.frame it will return the multilocus relatedness.

Value

A matrix of pairwise relatedness values.

Note

For missing data and for data comparing heterozygotes at a 2-allele locus this estimator is undefined. Moreover, I do add zero to both the numerator

Author(s)

Rodney J. dyer <rjdyer@vcu.edu>


dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.