Time-series negative binomial multilevel regression


Is there any reference / tutorial on how to build a time-series negative binomial multilevel regression model? I’ve checked the bsts R package (https://cran.r-project.org/web/packages/bsts/bsts.pdf), but seems it doesn’t handle multilevel (hierarchical) regression models.

Any help is appreciated.

@lauren and I included an example of this in our tutorial at StanCon, which is based on an example we developed with @rtrangucci:


There’s an Rmarkdown file and Stan programs in the corresponding GitHub repository. It starts simple but eventually builds up to a hierarchical negative binomial model with a time series component.


Thanks so much @jonah! Really useful link.

1 Like