Why accounting for data clustering matters in parasitology: Simulation-based insights from hierarchical infection models

Authors

  • Elisa Helman Grupo de Bioestadística Aplicada, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires. Buenos Aires, Argentina https://orcid.org/0000-0002-6663-0334
  • Adriana Pérez Grupo de Bioestadística Aplicada, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires. Buenos Aires, Argentina
  • Pablo Turjanski Consejo Nacional de Investigaciones Científicas y Tecnológicas de Argentina (CONICET). Buenos Aires, Argentina. Grupo de Bioestadística Aplicada, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires. Buenos Aires, Argentina. Instituto de Ciencias de la Computación, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires. Buenos Aires, Argentina
  • Juan M. Unzaga Laboratorio de Inmunoparasitología, Facultad de Ciencias Veterinarias, Universidad Nacional de La Plata. La Plata, Argentina
  • María S. Fernández Consejo Nacional de Investigaciones Científicas y Tecnológicas de Argentina (CONICET). Buenos Aires, Argentina. Grupo de Bioestadística Aplicada, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires. Buenos Aires, Argentina. Instituto de Cálculo “Rebeca Cherep de Guber”, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires. Buenos Aires, Argentina

DOI:

https://doi.org/10.25260/EA.27.37.1.0.2661

Keywords:

bias, pseudoreplication, statistical power

Abstract

Context. Parasitological data are inherently hierarchical because hosts sharing the same environment are exposed to common ecological and transmission processes. Nevertheless, clustered infection data are still frequently analysed using single-level statistical approaches, compromising epidemiological inference.
Objectives. Quantify the inferential consequences of ignoring farm-level clustering, using simulation-based scenarios reflecting realistic Sarcocystis spp. prevalence in pigs.
Methods. Using a simulation-based approach, the presence/absence of Sarcocystis spp. in pigs from two age groups (piglets and weaned pigs), clustered within farms under intensive or semi-extensive breeding systems, was analysed using a balanced experimental design. Eleven scenarios were simulated under a GLMM-based data-generating process, varying host- and farm-level effect sizes, inter-farm variability and sample sizes. For each scenario, 1000 datasets were generated to compare parameter estimation, type I error rates and statistical power, between a GLMM accounting for farm-level clustering and a GLM ignoring it.
Results and conclusions. Results demonstrated that not accounting for clustering underestimated fixed effects, particularly under high inter-farm variability, biasing effect sizes up to 45% on the logit scale. Additionally, the GLM yielded inflated type I error rates for farm-level predictors and reduced power for host-level effects in small-sample settings. To facilitate appropriate study design in parasitology, an R-tool was developed for estimating the sample size required to achieve a desired statistical power in multilevel settings.
Significance. These findings demonstrate that accounting for farm-level clustering is essential for reliable epidemiological inference. By quantifying the consequences of ignoring biologically induced clustering, this study highlights the importance of multilevel approaches for the analysis of parasitological data. The R-tool also supports power analysis and sampling design in hierarchical parasitological studies.

References

Allievi, C., M. Valleri, S. Zanzani, A. Zanon, M. Mortarino, and M. Manfredi. 2024. Epidemiology and distribution of gastrointestinal parasites in fattening pig farms in northern Italy. Parasitology Research 123:307. https://doi.org/10.1007/s00436-024-08320-z.

Amatya, A., and D. K. Bhaumik. 2018. Sample Size Determination for Multilevel Hierarchical Designs Using Generalized Linear Mixed Models. Biometrics 74:673-684. https://doi.org/10.1111/biom.12764.

Brooks, M. E., K. Kristensen, K. J. Benthem, A. Magnusson, C. W. Berg, A. Nielsen, H. J. Skaug, M. Mächler, and B. M. Bolker. 2017. glmmTMB Balances speed and flexibility among packages for zero-inflated generalized linear mixed modeling. The R Journal 9:378. https://doi.org/10.32614/RJ-2017-066.

Burton, A., D. G. Altman, P. Royston, and R. L. Holder. 2006. The design of simulation studies in medical statistics. Statistics in Medicine 25:4279-4292. https://doi.org/10.1002/sim.2673.

Calero-Bernal, R., S. K. Verma, S. Oliveira, Y. Yang, B. M. Rosenthal, and J. P. Dubey. 2015. In the United States, negligible rates of zoonotic sarcocystosis occur in feral swine that, by contrast, frequently harbour infections with Sarcocystis miescheriana, a related parasite contracted from canids. Parasitology 142:549-556. https://doi.org/10.1017/S0031182014001553.

Curtis, C. R., R. H. Mauritsen, P. H. Kass, M. D. Salman, and H. N. Erb. 1993. Ordinary versus random-effects logistic regression for analyzing herd-level calf morbidity and mortality data. Preventive Veterinary Medicine 16:207-222. https://doi.org/10.1016/0167-5877(93)90067-4.

Di Stefano, J. 2003. How much power is enough? Against the development of an arbitrary convention for statistical power calculations. Functional Ecology 17:707-709. https://doi.org/10.1046/j.1365-2435.2003.00782.x.

Fonseca Martinez, B. A., V. Bielefeldt Leotti, M. Riegert Borba, G. de Sousa e Silva, and L. G. Corbellini. 2017. Can hierarchical modeling improve our understanding of bovine abortion due to Neospora caninum infection? Veterinary Parasitology 237:77-82. https://doi.org/10.1016/j.vetpar.2017.02.016.

Gelman, A., and J. Hill. 2007. Data analysis using regression and multilevel/hierarchical models. Cambridge University Press. https://doi.org/10.32614/CRAN.package.arm.

Green, P., and C. MacLeod. 2016. SIMR: an R package for power analysis of generalized linear mixed models by simulation. Methods in Ecology and Evolution 7:493-498. https://doi.org/10.1111/2041-210X.12504.

Helman, E., A. Dellarupe, K. D. Steffen, M. Bernstein, and G. Moré. 2024. Morphological and molecular characterization of Sarcocystis spp. in pigs (Sus scrofa domestica) from Argentina. Parasitology International 100:102859. https://doi.org/10.1016/j.parint.2024.102859.

Jankowska-Mąkosa, A., D. Knecht, S. Wyrembak, and A. Zwyrzykowska-Wodzińska. 2023. Evaluation of the level of parasites infection in pigs as an element of sustainable pig production. Sustainability 15:3671. https://doi.org/10.3390/su15043671.

Johnson, P. C. D., S. J. E. Barry, H. M. Ferguson, and P. Müller. 2015. Power analysis for generalized linear mixed models in ecology and evolution. Methods in Ecology and Evolution 6:133-142. https://doi.org/10.1111/2041-210X.12306.

Jordan, C. Y. 2018. Population sampling affects pseudoreplication. PLOS Biology 16:e2007054. https://doi.org/10.1371/journal.pbio.2007054.

Julian, M. 2001. The Consequences of Ignoring Multilevel Data Structures in Nonhierarchical Covariance Modeling. Structural Equation Modeling: A Multidisciplinary Journal 8:325-352. https://doi.org/10.1207/S15328007SEM0803_1.

Kumle, L., M. L. H. Võ, and D. Draschkow. 2021. Estimating power in (generalized) linear mixed models: An open introduction and tutorial in R. Behavior Research Methods 53:2528-2543. https://doi.org/10.3758/s13428-021-01546-0.

Madouasse, A., S. Nusinovici, P. Monestiez, P. Ezanno, and A. Lehébel. 2016. Statistical methods in veterinary epidemiology. Journal de la Société Française de Statistique 157:153-181.

McDermott, J. J., and Y. H. Schukken. 1994. A review of methods used to adjust for cluster effects in explanatory epidemiological studies of animal populations. Preventive Veterinary Medicine 18:155-173. https://doi.org/10.1016/0167-5877(94)90073-6.

Merlo, J., B. Chaix, H. Ohlsson, A. Beckman, K. Johnell, P. Hjerpe, L. Råstam, and K. Larsen. 2006. A brief conceptual tutorial of multilevel analysis in social epidemiology: using measures of clustering in multilevel logistic regression to investigate contextual phenomena. Journal of Epidemiology and Community Health 60:290-297. https://doi.org/10.1136/jech.2004.029454.

Morris, T. P., I. R. White, and M. J. Crowther. 2019. Using simulation studies to evaluate statistical methods. Statistics in Medicine 38:2074-2102. https://doi.org/10.1002/sim.8086.

Morrison, D. A. 2002. How to improve statistical analysis in parasitology research publications. International Journal for Parasitology 32:1065-1070. https://doi.org/10.1016/S0020-7519(02)00064-4.

Muthu, S., S. Jacob, S. Dangoudoubiyam, and H. Ram. 2025. Parasitic diseases of pig: Signs, prevention, and control. Pp. 263-279 in A. Chauhan, A. Tarafdar, G. Kumar Gaur, et al. Commercial Pig Farming. Elsevier. https://doi.org/10.1016/B978-0-443-23769-0.00016-6.

Otte, M. J., and I. D. Gumm. 1997. Intra-cluster correlation coefficients of 20 infections calculated from the results of cluster-sample surveys. Preventive Veterinary Medicine 31:147-150. https://doi.org/10.1016/S0167-5877(96)01108-7.

Paterson, S., and J. Lello. 2003. Mixed models: getting the best use of parasitological data. Trends in Parasitology 19:370-375. https://doi.org/10.1016/S1471-4922(03)00149-1.

R Core Team. 2026. R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria.

Schielzeth, H., and S. Nakagawa. 2013. Nested by design: model fitting and interpretation in a mixed model era. Methods in Ecology and Evolution 4:14-24. https://doi.org/10.1111/j.2041-210x.2012.00251.x.

Stroup, W. W. 2012. Generalized linear mixed models: modern concepts, methods and applications. CRC Press, Boca Raton (FL).

Stryhn, H., and J. Christensen. 2014. The analysis—Hierarchical models: Past, present and future. Preventive Veterinary Medicine 113:304-312. https://doi.org/10.1016/j.prevetmed.2013.10.001.

Zeger, S. L., K. Y. Liang, and P. S. Albert. 1988. Models for longitudinal data: a generalized estimating equation approach. Biometrics 44:1049-1060. https://doi.org/10.2307/2531734.

Zuur, A. F., E. N. Ieno, N. Walker, A. A. Saveliev, and G. M. Smith. 2009. Mixed effects models and extensions in ecology with R. Springer New York, New York, NY. https://doi.org/10.1007/978-0-387-87458-6.

Why accounting for data clustering matters in parasitology: Simulation-based insights from hierarchical infection models

Downloads

Published

2026-12-05

How to Cite

Helman, E., Pérez, A., Turjanski, P., Unzaga, J. M., & Fernández, M. S. (2026). Why accounting for data clustering matters in parasitology: Simulation-based insights from hierarchical infection models. Ecología Austral, 017–029. https://doi.org/10.25260/EA.27.37.1.0.2661

Issue

Section

Articles