Here is a quickly made-up example where standard Poisson doesn't work, and NegativeBinomial would work only partially.
We have robust standard errors, but we don't have yet any facility in GLM or discrete to model heteroscedasticity, i.e. overdispersion or variance that varies with explanatory variables.
It's also an example where two sample comparison for Poisson rates and all the "exact" hypothesis tests will break down because the assumptions are not satisfied.
Standard GLM Quasi-Poisson (in R) also wouldn't work for varying overdispersion.
https://gist.github.com/josef-pkt/ff08f8c446576faa3654d17694da01fc
-----------------------
Overdispersion, Poisson, two-sample comparison¶
The following is a simple example in preparation of modelling dispersion in GLM.
The setup is a simple case of comparing the mean in two samples using Poisson. The difficulty is that the assumption that the samples come from a Poisson distribution is violated. Instead, the samples are created with Negative Binomial distribution with different amounts of overdispersion in the two samples. This is analogous to a t-test where the two samples have different variances.
The results:
Poisson underestimates the standard errors of the parameters
Using QuasiGLM adjusts the standard errors in the right direction, but uses an average adjustment instead of a sample specific adjustment for overdispersion
Using heteroscedasticity robust sandwich estimator corrects for both overdispersion and for different amounts of overdispersion in the two samples
Adjusting the standard errors for each sample separately by the amount of sample specific overdispersion produces standard errors that are very close to the HC standard errors.
---------------------------------------
Josef