Fis: Estimate simple inbreeding from frequencies

Description Usage Arguments Value Author(s) Examples

View source: R/fis.R

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

1
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

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

MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.