Learn R Programming

rubias (version 0.3.4)

rcpp_per_locus_logls: Return a matrix of locus-specific self-assignment logls

Description

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.

Usage

rcpp_per_locus_logls(par_list)

Value

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.

Arguments

par_list

genetic data converted to the param_list format by tcf2param_list

Details

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