Skip to content
Snippets Groups Projects
Commit 16f2fed6 authored by Vincent  LAVILLE's avatar Vincent LAVILLE
Browse files

Fix bug - Variance binomial exposure

parent c84c85e0
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ calculateParamsFromIndParams <- function(N, m, v) { ...@@ -73,7 +73,7 @@ calculateParamsFromIndParams <- function(N, m, v) {
#' #'
calculateParamsFromCounts <- function(N, n_expo) { calculateParamsFromCounts <- function(N, n_expo) {
meanval <- sum(n_expo) / sum(N) meanval <- sum(n_expo) / sum(N)
c(meanval, meanval * (1 - meanval)) c(meanval, sum(N) / (sum(N) - 1) * meanval * (1 - meanval))
} }
################################################################################ ################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment