Learn R Programming

forensim (version 1.1-4)

findfreq: 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.

encoding

UTF-8

See Also

simumix

Examples

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

Run the code above in your browser using DataLab