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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/AuxFunc.R

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

1
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

1
2
3
data(strusa)
s2<-simumix(simugeno(strusa,n=c(0,2000,0)),ncontri=c(0,2,0))
findfreq(s2,strusa,refpop="Cauc")

forensim documentation built on May 2, 2019, 11:09 a.m.

Related to findfreq in forensim...