Calculates the log likelihood of observing the phased data, given the population size, initial heterozygosity and time since admixture
log_likelihood_diploid(
local_anc_matrix,
pop_size,
freq_ancestor_1 = 0.5,
t,
phased = FALSE,
num_threads = 1
)
log likelihood
a matrix with four columns: column 1) chromosome indicator, 2) location of marker in Morgan on respective chromosome 3) ancestry at chromosome 4) ancestry at chromosome 2.
population size
Frequency of ancestor 1 at t = 0
time since admixture
is the data phased or not? default is false.
number of threads, default is one thread. Set to -1 to use all available threads.