Learn R Programming

forensim (version 1.1-4)

wrapdataL: 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

Examples

Run this code
aa<-simMixSNP(nSNP=5,writeFile=TRUE,outfile="sim.txt",ncont=3) #Simulates data
res<-wrapdataL(fil="sim.txt") # Calculates and plots

Run the code above in your browser using DataLab