diff --git a/R/computeLogml.R b/R/computeLogml.R new file mode 100644 index 0000000..795925c --- /dev/null +++ b/R/computeLogml.R @@ -0,0 +1,27 @@ +computeLogml <- function(counts, sumcounts, noalle, data, rowsFromInd) { + nloci <- size(counts, 2) + npops <- size(counts, 3) + adjnoalle <- zeros(max(noalle), nloci) + for (j in 1:nloci) { + adjnoalle[1:noalle[j], j] <- noalle(j) + if ((noalle(j)