Learn R Programming

relSim (version 1.0.0)

randomSibPairs: Generate one or more pairs of random siblings from a given set of allele frequencies

Description

Generates one or more pairs of random siblings from a given set of allele frequencies.

Usage

randomSibPairs(Freqs, BlockSize = 1)

Value

A list of length BlockSize. Each element of the list has a sublist containing two profiles called sib1 and sib2

Arguments

Freqs

A list containing two lists labelled loci and freqs. The second list is a list of vectors containing the allele frequencies of each allele at each locus in the multiplex.

BlockSize

The number of pairs of profiles to generate

Author

James M. Curran

Details

The alleles are simply integers rather than the STR repeat numbers. This speeds up computation immensely when calculating any of the LRs or IBS.

See Also

randomPCPairs, randomProfilePairs

Examples

Run this code

data(fbiCaucs)
P = randomSibPairs(fbiCaucs)
P$sib1
P$sib2

Run the code above in your browser using DataLab