Skip to content

Commit

Permalink
Fix syntax glitch in dNmixture
Browse files Browse the repository at this point in the history
  • Loading branch information
dochvam committed Feb 20, 2020
1 parent e5cc9d7 commit 9d65989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/dNmixture.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ dNmixture_v <- nimbleFunction(
}
if (Nmax == -1) {
Nmax <- max(x + qpois(0.99999, lambda * (1 - prob)))
} Nmin <- max( max(x), Nmin ) ## set Nmin to at least the largest x
}
Nmin <- max( max(x), Nmin ) ## set Nmin to at least the largest x

logProb <- -Inf
if (Nmax > Nmin) {
Expand Down

0 comments on commit 9d65989

Please sign in to comment.