Skip to content

Commit

Permalink
correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangriffiths committed Jul 23, 2024
1 parent 220515a commit 4913a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/emptyDrops.R
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ testEmptyDrops <- function(m, lower=100, niters=10000, test.ambient=FALSE, ignor
.estimate_alpha <- function(mat, prop, totals, interval=c(0.01, 10000))
# Efficiently finds the MLE for the overdispersion parameter of a Dirichlet-multinomial distribution.
{
i <- nzwhich(x, arr.ind=TRUE)[,1]
x <- nzvals(x)
i <- nzwhich(mat, arr.ind=TRUE)[,1]
x <- nzvals(mat)

per.prop <- prop[i]
LOGLIK <- function(alpha) {
Expand Down

0 comments on commit 4913a08

Please sign in to comment.