Skip to content
Prev 359501 / 398502 Next

Is there dpois equivalent for zero-inflated Poisson?

zero = proportion of zero inflation part
lamba = expected value of poisson part

There was a typo in the distribution. It should multiple by (1 - zero)
instead of divide by it.

dzeroinflpois <- function(x, lambda, zero){
  ifelse(x == 0, zero, 0) + dpois(x, lambda) * (1 - zero)
}

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

2016-03-22 13:25 GMT+01:00 Matti Viljamaa <mviljamaa at kapsi.fi>: