Learn R Programming

forensIT (version 1.1.1)

buildEnsembleITValues: buildEnsembleITValues

Description

Build ensemble of IT values from a list of simulations

Usage

buildEnsembleITValues(
  lsimu = lsimulation,
  ITtab = sim$ITtable,
  bFullIT = FALSE
)

Value

list of IT values

Arguments

lsimu

list of simulations

ITtab

IT table

bFullIT

boolean to return full IT table

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)
lensembleIT   <- buildEnsembleITValues(lsimu=lsimEnsemble,ITtab=simME$ITtable,bFullIT = TRUE)

Run the code above in your browser using DataLab