wrapdataL: ML estimate of number of contributors for SNPs

View source: R/wrapdataL.R

wrapdataLR Documentation

ML estimate of number of contributors for SNPs

Description

Wrap up of dataL in forensim. Given file with columns: "No, Marker, Allele, Frequency and Height" the log likelihood for requested number of contributors is calculated. For now only "Frequency" column is used.

Usage

wrapdataL(fil , plotte , nInMixture , tit )

Arguments

fil

Input file

plotte

If T, plot

nInMixture

Alternatives for number of contributors, say 1:5

tit

Title to be used in plot

Value

Plot (optional) and log likelihoods

Author(s)

Thore Egeland Thore.Egeland@medisin.uio.no

Examples

aa<-simMixSNP(nSNP=5,writeFile=FALSE,outfile="sim.txt",ncont=3) #Simulates data

# run with writeFile = TRUE for plot
# aa<-simMixSNP(nSNP=5,writeFile=TRUE,outfile="sim.txt",ncont=3)
# res<-wrapdataL(fil="sim.txt") # Calculates and plots

forensim documentation built on June 8, 2025, 9:36 p.m.