A practical guide and power analysis for GLMMs: detecting among treatment variation in random effects
- PMID: 26401446
- PMCID: PMC4579019
- DOI: 10.7717/peerj.1226
A practical guide and power analysis for GLMMs: detecting among treatment variation in random effects
Abstract
In ecology and evolution generalized linear mixed models (GLMMs) are becoming increasingly used to test for differences in variation by treatment at multiple hierarchical levels. Yet, the specific sampling schemes that optimize the power of an experiment to detect differences in random effects by treatment/group remain unknown. In this paper we develop a blueprint for conducting power analyses for GLMMs focusing on detecting differences in variance by treatment. We present parameterization and power analyses for random-intercepts and random-slopes GLMMs because of their generality as focal parameters for most applications and because of their immediate applicability to emerging questions in the field of behavioral ecology. We focus on the extreme case of hierarchically structured binomial data, though the framework presented here generalizes easily to any error distribution model. First, we determine the optimal ratio of individuals to repeated measures within individuals that maximizes power to detect differences by treatment in among-individual variation in intercept, among-individual variation in slope, and within-individual variation in intercept. Second, we explore how power to detect differences in target variance parameters is affected by total variation. Our results indicate heterogeneity in power across ratios of individuals to repeated measures with an optimal ratio determined by both the target variance parameter and total sample size. Additionally, power to detect each variance parameter was low overall (in most cases >1,000 total observations per treatment needed to achieve 80% power) and decreased with increasing variance in non-target random effects. With growing interest in variance as the parameter of inquiry, these power analyses provide a crucial component for designing experiments focused on detecting differences in variance. We hope to inspire novel experimental designs in ecology and evolution investigating the causes and implications of individual-level phenotypic variance, such as the adaptive significance of within-individual variation.
Keywords: Behavioral ecology; Binomial distribution; Hierarchical; Individual variation; Plasticity; Reaction norm; Sampling scheme.
Conflict of interest statement
The authors declare there are no competing interests.
Figures
Similar articles
-
Quantifying Glucocorticoid Plasticity Using Reaction Norm Approaches: There Still is So Much to Discover!Integr Comp Biol. 2022 Aug 13;62(1):58-70. doi: 10.1093/icb/icab196. Integr Comp Biol. 2022. PMID: 34665256 Free PMC article. Review.
-
A comparison of observation-level random effect and Beta-Binomial models for modelling overdispersion in Binomial data in ecology & evolution.PeerJ. 2015 Jul 21;3:e1114. doi: 10.7717/peerj.1114. eCollection 2015. PeerJ. 2015. PMID: 26244118 Free PMC article.
-
Evaluation of Generalized Linear Mixed Models for Analyzing Disease Incidence Data Obtained in Designed Experiments.Plant Dis. 2002 Mar;86(3):316-325. doi: 10.1094/PDIS.2002.86.3.316. Plant Dis. 2002. PMID: 30818614
-
Power analysis for generalized linear mixed models in ecology and evolution.Methods Ecol Evol. 2015 Feb;6(2):133-142. doi: 10.1111/2041-210X.12306. Epub 2014 Dec 6. Methods Ecol Evol. 2015. PMID: 25893088 Free PMC article.
-
Generalized linear mixed models: a practical guide for ecology and evolution.Trends Ecol Evol. 2009 Mar;24(3):127-35. doi: 10.1016/j.tree.2008.10.008. Trends Ecol Evol. 2009. PMID: 19185386 Review.
Cited by
-
The environmental drivers of bacterial meningitis epidemics in the Democratic Republic of Congo, central Africa.PLoS Negl Trop Dis. 2020 Oct 7;14(10):e0008634. doi: 10.1371/journal.pntd.0008634. eCollection 2020 Oct. PLoS Negl Trop Dis. 2020. PMID: 33027266 Free PMC article.
-
Six Steps towards a Spatial Design for Large-Scale Pollinator Surveillance Monitoring.Insects. 2024 Mar 26;15(4):229. doi: 10.3390/insects15040229. Insects. 2024. PMID: 38667359 Free PMC article.
-
Decreased reward value of biological motion among individuals with autistic traits.Cognition. 2018 Feb;171:1-9. doi: 10.1016/j.cognition.2017.10.017. Epub 2017 Nov 1. Cognition. 2018. PMID: 29101779 Free PMC article.
-
Estimating power in (generalized) linear mixed models: An open introduction and tutorial in R.Behav Res Methods. 2021 Dec;53(6):2528-2543. doi: 10.3758/s13428-021-01546-0. Epub 2021 May 5. Behav Res Methods. 2021. PMID: 33954914 Free PMC article.
-
Prokofiev was (almost) right: A cross-cultural investigation of auditory-conceptual associations in Peter and the Wolf.Psychon Bull Rev. 2024 Aug;31(4):1735-1744. doi: 10.3758/s13423-023-02435-7. Epub 2024 Jan 24. Psychon Bull Rev. 2024. PMID: 38267741 Free PMC article.
References
-
- Bates D, Maechler M, Bolker B, Walker S. Fitting linear mixed-effects models using lme4. 20141406.5823
-
- Benedetti-Cecchi L. The importance of the variance around the mean effect size of ecological processes. Ecology. 2003;84:2335–2346. doi: 10.1890/02-8011. - DOI
Grants and funding
LinkOut - more resources
Full Text Sources
Other Literature Sources
