Modelling longitudinal polytomous animal data using Bayesian hierarchical models

Main Article Content

Maria Letícia Salvador
https://orcid.org/0000-0002-7626-936X
Gabriel Rodrigues Palma
https://orcid.org/0000-0003-0718-2954
Mariana Coelly Modesto Santos Tavares
Iran José Oliveira Silva
Idemauro Antonio Rodrigues de Lara
https://orcid.org/0000-0002-1172-9855

Abstract

The analysis of longitudinal categorical data can be complex and unfeasible due to the number of parameters involved, characterised by overparameterisation leading to model non-convergence, in addition to problems related to sample size and the presence or absence of overdispersion. In this context, we adopt the Bayesian hierarchical models as an alternative methodology to classical statistical techniques for analysing nominal polytomous data in longitudinal studies. The theoretical foundation is based on the use of non-informative priors and parameter estimation performed via Markov Chain Monte Carlo (MCMC) methods, which enable a robust and flexible data analysis framework. As a motivating example, the procedure is illustrated through an applied study in agrarian science, focusing on animal welfare, which assessed seven types of behaviours exhibited by pigs over twelve weeks. Model comparison based on the deviance information criterion (DIC) indicated that the model including the sex and enrichment interaction provided the best fit to the data. The results illustrate the applicability of Bayesian hierarchical models for the analysis of longitudinal nominal polytomous data. Since the computational procedures were implemented in the R software and the codes are available, this work will serve as support for those who need such analyses, especially in agricultural designs, where longitudinal categorical data are frequently encountered.

Article Details

How to Cite
Salvador, M. L., Palma, G. R., Modesto Santos Tavares, M. C., Oliveira Silva, I. J., & Rodrigues de Lara, I. A. (2026). Modelling longitudinal polytomous animal data using Bayesian hierarchical models. Brazilian Journal of Biometrics, 44(3), e-44977. https://doi.org/10.28951/bjb.v44i3.977
Section
Articles

References

1. Agresti, A. & Hitchcock, D. B. Bayesian inference for categorical data analysis. Statistical Methods and Applications 14, 297–330 (2005). https://doi.org/10.1007/s10260-005-0121-y

2. Chan, T. M. Multilevel multinomial logit regression model with random effects: application to flash EuroBarometer euro survey data. Journal of Statistical Computation and Simulation 93, 58–76 (2023). https://doi.org/10.1080/00949655.2022.2092867

3. Dos Santos, J. V., de Souza Farias, S., Pereira, T. L., Teixeira, C. P. & Titto, C. G. Preference for and maintenance of interest in suspended enrichment toys in confined growing pigs. Journal of Veterinary Behavior 45, 68–73 (2021). https://doi.org/10.1016/j.jveb.2021.07.005

4. Gelman, A., Carlin, J. B., Stern, H. S. & Rubin, D. B. Bayesian data analysis (Chapman and Hall/CRC, 1995). https://doi.org/10.1201/b16018

5. Giuliotti, L., Benvenuti, M. N., Giannarelli, A., Mariti, C. & Gazzano, A. Effect of different environment enrichments on behaviour and social interactions in growing pigs. Animals 9, 101 (2019). https://doi.org/10.3390/ani9030101

6. Gong, X., Van Soest, A. & Villagomez, E. Mobility in the urban labor market: a panel data analysis for Mexico. Economic Development and Cultural Change 53, 1–36 (2004).

7. Greenacre, M. J. Correspondence analysis.Wiley Interdisciplinary Reviews: Computational Statistics 2, 613–619 (2010). https://doi.org/10.1002/0471667196.ess6018

8. Hartzel, J., Agresti, A. & Caffo, B. Multinomial logit random effects models. Statistical Modelling 1, 81–102 (2001). https://doi.org/10.1177/1471082X0100100201

9. Johnson, R. A. &Wichern, D. W. Applied multivariate statistical analysis (2007).

10. Li, J. et al. Effects of music stimulus on behavior response, cortisol level, and horizontal immunity of growing pigs. Journal of Animal Science 99, skab043 (2021). https://doi.org/10.1093/jas/skab043

11. Mkwanazi, M. V., Ncobela, C. N., Kanengoni, A. T. & Chimonyo, M. Effects of environmental enrichment on behaviour, physiology and performance of pigs—A review. Asian-Australasian journal of animal sciences 32, 1 (2019). https://doi.org/10.5713/ajas.17.0138

12. Natarajan, R. & Kass, R. E. Reference Bayesian methods for generalized linear mixed models. Journal of the American Statistical Association 95, 227–237 (2000). https://doi.org/10.1080/01621459.2000.10473916

13. Pettitt, A., Tran, T., Haynes, M. & Hay, J. A Bayesian hierarchical model for categorical longitudinal data from a social survey of immigrants. Journal of the Royal Statistical Society: Series A (Statistics in Society) 169, 97–114 (2006). https://doi.org/10.1111/j.1467-985X.2005.00389.x

14. Plummer, M. rjags: Bayesian Graphical Models using MCMC R package version 4-15 (2023). https://CRAN.R-project.org/package=rjags.

15. Plummer, M. et al. JAGS: A program for analysis of Bayesian graphical models using Gibbs sampling in Proceedings of the 3rd international workshop on distributed statistical computing 124 (2003), 1–10.

16. R Core Team. R: A Language and Environment for Statistical Computing R Foundation for Statistical Computing (Vienna, Austria, 2024). https://www.R-project.org/.

17. Ralph, C., Hebart, M. & Cronin, G. M. Enrichment in the sucker and weaner phase altered the performance of pigs in three behavioural tests. Animals 8, 74 (2018).

18. Singer, J. M., Nobre, J. S. & Rocha, F. M. M. Análise de dados longitudinais Apêndices A, B e CVersao parcial (2018).

19. Tavares, M. C. M. S. & Silva, I. J. O. d. Enriquecimento ambiental, biomecânica óssea e bemestar

animal na produção de suínos em terminação PhD thesis (Universidade de São Paulo, 2022).

10.11606/T.11.2022.tde-14022023-164136.

Most read articles by the same author(s)