rel_nason: This estimates the Fij statistic from Nason allele-wise or...

View source: R/rel_nason.R

rel_nasonR Documentation

This estimates the Fij statistic from Nason allele-wise or for a whole locus

Description

This function estimates the allele-wise coancestry statistic fij from Nason. It can be used as a single locus or multilocus estimator if you provide the correct standardizations.

Usage

rel_nason(x, allele = NA, as.relatedness = FALSE)

Arguments

x

A vector of loci to use.

allele

The allele to estimate. If this is left blank, a locus-wide estimator is provided. That is the average of the allele-wise estimators standardized by the polymorphic index, Pe().

as.relatedness

Return r instead of Fij (default=FALSE)

Value

A matrix of pairwise values for either the allele or for the full locus.

Note

This estimator will use missing data but it treats it as if the frequency for each allele at an individual locus are equal to the population allele frequencies. This may influence your estimators.

Author(s)

Rodney J. Dyer <rjdyer@vcu.edu>


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