findfreq: Finds the allele frequencies of a mixture from a tabfreq...

View source: R/AuxFunc.R

findfreqR Documentation

Finds the allele frequencies of a mixture from a tabfreq object

Description

The findfreq function finds the allele frequencies of a mixture stored in a simumix object, form a given tabfreq object. If the tabfreq object contains multiple populations, a reference population from which to extract the frequencies must be specified.

Usage

findfreq(mix, freq, refpop = NULL)

Arguments

mix

a simumix object

freq

a tabfreq object from which to extract the allele frequencies of the mixture

refpop

a factor giving the reference population in tabfreq from which to extract the allele frequencies

Value

A list giving the allele frequencies for each locus.

Author(s)

Hinda Haned <h.haned@nfi.minvenj.nl>

See Also

simumix

Examples

## Not run: 
data(strusa)
s2<-simumix(simugeno(strusa,n=c(0,2000,0)),ncontri=c(0,2,0))
findfreq(s2,strusa,refpop="Cauc")

## End(Not run)

hindantation/forensim documentation built on Oct. 8, 2022, 4:42 a.m.