Learn R Programming

forensIT (version 1.1.1)

simTestIDMarkers: Simulate testID markers

Description

Simulate testID markers

Usage

simTestIDMarkers(ped, testID, numSim = 10, seed = 123457)

Value

list of simulations

Arguments

ped

pedigree

testID

test ID

numSim

number of simulations

seed

seed

Examples

Run this code
library(forrel)
library(mispitools)
freqs <- lapply(getfreqs(Argentina)[1:15], function(x) {x[x!=0]})
fam  <- linearPed(2)
fam  <- addChildren(fam, father =  1, mother =  2)
fam  <- pedtools::setMarkers(fam, locusAttributes = freqs)
ped  <- profileSim(fam, N = 1, ids = c(6)  , numCores = 1,seed=123)
lsimEnsemble  <- simTestIDMarkers(ped,2,numSim=5,seed=123)

Run the code above in your browser using DataLab