kinship_wg_limit: Limit of Weir-Goudet kinship estimator

View source: R/kinship_wg_limit.R

kinship_wg_limitR Documentation

Limit of Weir-Goudet kinship estimator

Description

This function calculates the biased limiting expectation of the Weir-Goudet kinship estimator. This limit is easily calculated given the true kinship matrix.

Usage

kinship_wg_limit(kinship)

Arguments

kinship

The true kinship matrix

Value

The biased limit of the Weir-Goudet kinship estimator

Examples

# create a dummy kinship matrix
kinship <- matrix(
    c(
        0.6, 0.1, 0,
        0.1, 0.6, 0.1,
        0, 0.1, 0.6
        ),
    nrow = 3
)
# this is its biased limit
kinship_wg_lim <- kinship_wg_limit(kinship)


OchoaLab/popkinsuppl documentation built on May 17, 2022, 9:50 a.m.