Personal tools
You are here: Home Examples GLM/GLMM/GAM Count data Negative binomial serially correlated counts Negative binomial serially correlated counts

Negative binomial serially correlated counts

polio_plot.pngModel description

For a background on the model and the polio data please see:  A discrete valued time series model; Polio data

We replace the Poisson response with a negative binomial response that allows overdispersion. The negative binomial model has one extra parameter, the overdispersion tau = variance / mean.


The Poisson and negative binomial models are supplied in two versions: normal and separable. Read about the latter in the ADMB-RE manual, but in short this version of the code runs faster, but is slightly harder to read. The files are:


See "Navigation" box to the left.

  • polio.dat: Data file
  • polio2.tpl - negative binomial (normal)
  • polio2s.tpl - negative binomial (separable)
  • polio3.tpl - Poisson (normal)
  • polio3s.tpl - Poisson (separable)


Running the models

You have to copy any of the tpl-files into polio.tpl (to have the executable read polio.dat) before you compile.



The estimate of overdispersion parameter is tau = 4.9 under the negative binomial, and by construction tau = 1 under the Poisson model. Hence, the latent process that governs the mean has to account for overdispersion as well as serial correlation under the Poisson model. This can be seen in the figure above that the Poisson mean "stretches" more after the observations. Further: the variance of the latent process is lower under the neg. bin. model, and the serial correlation is higher.