184 Handbook of Discrete-Valued Time Series
similar syntax as the one displayed in Section 8.4.2. family="Poisson" indicates we are
dealing with count data and that we will use a Poisson likelihood in our model.
We now proceed to a model that also includes random-effects to account for overdis-
persion. We have only redened the arguments that change from one model to the other
in order to save space, while the arguments that remain the same as in inla1 have been
represented by *. The command line becomes
formula2 = y ˜ -1 +
f(time, model = "rw1", constr=FALSE, hyper = hyper.rw1) +
f(seasonal, model = "seasonal", season.length = n.seas,
hyper = hyper.sea) +
f(iid, model = "iid", hyper = hyper.iid)
inla2 = inla(formula = formula2, *)
The only new feature of this model is the addition of the i.i.d. random-effects to account
for overdispersion.
Acknowledgments
The authors thank an anonymous reviewer and the editors for their careful reading of this
work, and for their comments and suggestions that helped to improve the presentation.
Dani Gamerman was supported by a grant from CNPq-Brazil. Carlos A. Abanto-Valle
was supported by grants from CNPq-Brazil and FAPERJ. Ralph S. Silva was supported
by grants from CNPq-Brazil and FAPERJ.
References
Abanto-Valle, C. A. and Dey, D. K. (2014), State space mixed models for binary responses with scale
mixture of normal distributions links, Computational Statistics & Data Analysis, 71, 274–287.
Albert, J. and Chib, S. (1993), Bayesian analysis of binary and polychotomous response data, Journal
of the American Statistical Association, 88, 669–679.
Andrieu, C., Doucet, A., and Holenstein, R. (2010), Particle Markov chain Monte Carlo methods,
Journal of Royal Statistical Society, Series B, 72, 1–33.
Carlin, B. P., Polson, N. G., and Stoffer, D. S. (1992), A Monte Carlo approach to nonnormal and
nonlinear state-space modeling, Journal of the American Statistical Association, 87, 493–500.
Carter, C. K. and Kohn, R. (1994), On Gibbs sampler for State space models, Biometrika, 81, 541–553.
Carter, C. K. and Kohn, R. (1996), Markov chain Monte Carlo in conditionally Gaussian state space
models, Biometrika, 81, 589–601.
Carvalho, C., Johannes, M., Lopes, H., and Polson, N. (2010), Particle learning and smoothing,
Statistical Science, 25, 88–106.
Chan, K. S. and Ledolter, J. (1995), Monte Carlo EM estimation for time series models involving
counts, Journal of the American Statistical Association, 90, 242–252.
Chib, S. and Greenberg, E. (1995), Understanding the Metropolis-Hastings algorithm, The American
Statistician, 49, 327–335.