pid_permute: Calculate Probability of Identity (PID) & PIDsibs for...

View source: R/pid.R

pid_permuteR Documentation

Calculate Probability of Identity (PID) & PIDsibs for different combinations of loci

Description

Calculate Probability of Identity (PID) & PIDsibs for different combinations of loci

Usage

pid_permute(obj, nrep = 1000)

Arguments

obj

a diploid genind object

nrep

the number of permutations to perform

Value

a list with three elements, reporting the raw data.frame from the permutations performed, the median values of PID & PIDsibs from 1 to the total number of loci, a boxplot plot

Author(s)

Nikolaos Tourvas

Examples

## Not run: 
data(nancycats) # load the "nancycats" genind obj from package adegenet
pid_perm <- pid_permute(obj = nancycats)

## End(Not run)


nikostourvas/PopGenUtils documentation built on April 23, 2022, 1:14 p.m.