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

View source: R/RcppExports.R

rcpp_per_locus_loglsR Documentation

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)

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

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.


benmoran11/rubias documentation built on Feb. 1, 2024, 10:52 p.m.