rcpp_per_locus_logls function

Return a matrix of locus-specific self-assignment logls

Return a matrix of locus-specific self-assignment logls

Takes a list of key parameters from a genetic dataset, and calculates the log-likelihood of each individual's single-locus genotype, given the allele counts in the individual's collection.

rcpp_per_locus_logls(par_list)

Arguments

  • par_list: genetic data converted to the param_list format by tcf2param_list

Returns

rcpp_per_locus_logls returns a matrix with I rows and L columns. Each row represents an individual, and each column a locus. Note that missing data at a locus returns a zero. That should be changed to NA later.

Details

This uses Leave-One-Out cross-validation is used to avoid bias in log-likelihood for an individual's known collection of origin

  • Maintainer: Eric C. Anderson
  • License: CC0
  • Last published: 2024-01-24

Useful links