Skip to content

Latest commit

 

History

History

negative-binomial-serially-correlated-counts

Negative binomial serially correlated counts

Filed under: Count data, Generalized Linear Mixed Models, State Space Model

Compares a negative binomial response to Poisson responses for the polio data.

polio plot

Model 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:

Files

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.

Results

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.