Skip to content

Commit

Permalink
Add links for ZIPoisson
Browse files Browse the repository at this point in the history
  • Loading branch information
agdenadel committed Feb 27, 2024
1 parent 45df920 commit 35c4bc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/estimate_zipoisson.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# https://en.wikipedia.org/wiki/Zero-inflated_model#Estimators_of_ZIP_parameters
# https://math.stackexchange.com/questions/2761563/maximum-likelihood-estimation-for-zero-inflated-poisson-distribution
# https://ieeexplore.ieee.org/document/9032203
# todo document these functions
estimate_zi_poisson <- function(data) {
num.zeros <- sum(data == 0)
r0 <- 1 / length(data) * num.zeros
Expand Down

0 comments on commit 35c4bc9

Please sign in to comment.