Fis: Estimate simple inbreeding from frequencies

View source: R/fis.R

FisR Documentation

Estimate simple inbreeding from frequencies

Description

Returns the general Fis = 1-ho/he parameter from the locus being passed or a set of them if the value passed is a data.frame with locus objects.

Usage

Fis(x, small.N = FALSE, stratum = NULL, loci = NULL)

Arguments

x

Either a locus object or a data.frame with locus objects.

small.N

Passes this along to He for small sample sizes.

stratum

An optional term for the estimation of inbreeding from samples of populations (default=NULL)

loci

The subset of loci to use (if more are passed), default is to use all loci.

Value

The inbreeding F statistic as a numeric value or a data.frame if you passed multiple loci to this function.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

loci <- c( locus( c("A","A") ), locus( c("A","A") ), locus( c("A","B") ) )
Fis( loci )

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