geno_logL: Calculate a matrix of genotype log-likelihoods for a genetic...

View source: R/RcppExports.R

geno_logLR Documentation

Calculate a matrix of genotype log-likelihoods for a genetic dataset

Description

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

Usage

geno_logL(par_list)

Arguments

par_list

genetic data converted to the param_list format by tcf2param_list

Details

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

Value

geno_logL returns a matrix with C rows and I columns. Each column represents an individual, and each row the log-likelihood of that individual's genotype, given the allele counts in that collection

Examples

example(tcf2param_list)
ale_glL <- geno_logL(ale_par_list)

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